diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0a1955f..484daca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build MFA Plugin +name: Build MTBlockEditor Plugin on: push: branches: diff --git a/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.5/mt-block-editor.css.map b/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.5/mt-block-editor.css.map deleted file mode 100644 index 7d670a5..0000000 --- a/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.5/mt-block-editor.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mt-block-editor.css","mappings":"AA8BA,8BACE,eACF,CAGE,4BAEE,gBAAkB,CADlB,cAEF,CAEA,oOAGE,mBAAoB,CAFpB,iBAAkB,CAClB,mBAAoB,CAGpB,QAAS,CADT,oBAEF,CAEA,oCAzBA,qBAAsB,CAFtB,qBAAyB,CAFzB,iBAAkB,CAGlB,UAAc,CAEd,cAAe,CAJf,cAAe,CAFf,gBAgCA,CAzBA,0CACE,wBACF,CAyBA,oCA7BA,qBAAsB,CAFtB,qBAAyB,CAFzB,iBAAkB,CAGlB,UAAc,CAEd,cAAe,CAJf,cAAe,CAFf,gBAyCA,CAlCA,0CACE,wBACF,CC3BF,oCDsDI,wBAAyB,CACzB,U,CACA,0CACE,wBACF,CAGF,gCAKE,4BAA6B,CAD7B,QAAS,CAGT,UAAW,CALX,aAAc,CAMd,cAAe,CALf,aAAc,CAGd,cAAgB,CALhB,UAgBF,CARE,sCAEE,qBAAsB,CADtB,YAEF,CACA,sCAEE,qBAAsB,CADtB,cAEF,CAGF,oCAEE,oBAAqB,CAGrB,4BAA6B,CAD7B,QAAS,CAET,UAAW,CALX,YAAa,CAMb,cAAuC,CAJvC,6BAsCF,CAhCE,yCAEE,yBAA0B,CAD1B,kBAEF,CAEA,2BAdF,oCAeI,eAAgB,CAChB,iBAyBJ,CAxBI,oFAIE,qBAAsB,CADtB,cAAe,CADf,YAGF,CAEA,wCAGE,gBAAiB,CAFjB,uBAAwB,CACxB,UAEF,CACF,CAEA,2BA/BF,oCAiCI,WAAY,CACZ,gBAAiB,CACjB,SAAS,CAHT,UASJ,CAJI,wCACE,YACF,CACF,CAGF,uCAEE,iBAAkB,CADlB,UA2EF,CAxEE,uDAEE,YAAa,CACb,iBAAkB,CAFlB,UAsEF,CAjEI,qGACE,YACF,CAEA,2BALF,sFAOI,oBAAoB,CADpB,UAiBJ,CAbM,uHACE,OACF,CAEJ,CAEA,2BAEI,uHACE,QACF,CAEJ,CAGF,6DAGE,8RA2BG,CAEH,yCAA+D,CAC/D,qDAAyD,CAFzD,iDAAqD,CAKrD,QAAS,CAnCT,UAAW,CAoCX,MAAO,CAEP,mBAAoB,CALpB,iBAAkB,CAIlB,OAAQ,CAHR,KAAM,CAjCN,WAsCF,CAIJ,mCACE,eAAgB,CAMhB,+qBAA2C,CAC3C,oBAAqB,CANrB,WAAY,CAOZ,UAAW,CAHX,UAAW,CAHX,cAAe,CAOf,cAAe,CALf,WAAY,CADZ,UAOF,CAEA,iCACE,eAAgB,CAKhB,scAAyC,CACzC,oBAAqB,CALrB,WAAY,CACZ,WAAY,CAEZ,WAAY,CADZ,UAIF,CAEA,+BACE,eAAgB,CAKhB,wNAAuC,CACvC,oBAAqB,CALrB,WAAY,CACZ,cAAe,CAEf,WAAY,CADZ,UAIF,CAEA,0CACE,eAAgB,CAChB,WAAY,CACZ,cAAe,CAEf,WAAY,CADZ,UAMF,CAJE,iDACE,UAAW,CACX,WACF,CAGF,iCACE,eAAgB,CAKhB,0NAAyC,CACzC,oBAAqB,CALrB,WAAY,CACZ,cAAe,CAEf,WAAY,CADZ,UAIF,CAEA,sCAGE,sBAAuB,CADvB,YAAa,CADb,iBA+FF,CA3FE,qDACE,cACF,CAEA,gEAGE,YAAa,CACb,qBAAsB,CAHtB,iBAAkB,CAClB,WAAY,CAIZ,oBAAqB,CADrB,iBAQF,CANE,uEACE,cAIF,CAHE,6EACE,UACF,CAGJ,mFACE,kBAAmB,CACnB,UACF,CAEA,8DAKE,YAAa,CACb,qBAAsB,CAHtB,WAAY,CADZ,UAAW,CADX,iBAAkB,CAGlB,oBAAqB,CAGrB,iBAUF,CARE,wOAGE,cAIF,CAHE,0PACE,UACF,CAIJ,iFACE,kBACF,CAEA,6DAME,cAAe,CAFf,aAAc,CAFd,WAAY,CAGZ,iBAAkB,CAFlB,SAAU,CAFV,UA2CF,CApCE,4EAKE,4BAA6B,CAC7B,SAAU,CAHV,iBAAkB,CAClB,eAAgB,CAFhB,cAAgB,CADhB,UAkCF,CA3BE,mFAYE,UAAW,CAVX,WAAY,CAQZ,cAAe,CADf,eAAiB,CAHjB,WAAY,CAHZ,qBAAsB,CAItB,gBAAiB,CAMjB,aAAc,CAZd,iBAAkB,CAOlB,iBAAkB,CAOlB,iIAEc,CAbd,QAAS,CAOT,cAAgB,CANhB,UAAW,CASX,WAIF,CAEA,kFACE,6BAAuC,CACvC,UACF,CACA,kFACE,SACF,CAKN,8BAIE,kBAA8B,CAD9B,WAAY,CADZ,iBAAkB,CAGlB,cAAgB,CAJhB,UAwEF,CAnEE,mHAGE,mCACF,CAEA,qDACE,wBAAoC,CACpC,iBAAkB,CAClB,WACF,CAEA,2CAjXF,cAA0B,CAC1B,eAAmB,CAEnB,cAAe,CADf,WAiXE,CA/WF,iDAEE,qBAAsB,CADtB,mBAEF,CA8WE,mDArXF,cAA0B,CAC1B,eAAmB,CAEnB,cAAe,CADf,WAuXE,CArXF,yDAEE,qBAAsB,CADtB,mBAEF,CCVF,mDD0XM,oBAAqB,CACrB,e,CAGF,uDAhXF,gCAkXE,CAEA,gDAQE,UAAW,CAPX,oBAAqB,CAKrB,mBAAoB,CAFpB,cAAuC,CACvC,eAAmB,CAEnB,kBAAmB,CAJnB,kBAAmB,CADnB,UAmBF,CAZE,sKAxYJ,cAA0B,CAC1B,eAAmB,CAEnB,cAAe,CADf,WA2YI,CAzYJ,wLAEE,qBAAsB,CADtB,mBAEF,CCVF,sKDcE,gC,CAoYI,oIAEE,aAAc,CACd,gBACF,CAGF,mDASE,eAAiB,CAFjB,UAAW,CADX,cAAuC,CAFvC,QAAS,CAMT,SAAU,CALV,aAAc,CAJd,mBAAoB,CACpB,iBAAkB,CAClB,QAAS,CAKT,cAGF,CACA,yDACE,SACF,CACA,iCACE,yBACF,CAIA,2EACE,UACF,CAGF,2CACE,YAAa,CACb,sBAAuB,CAIvB,sBAAuB,CAHvB,iBAAkB,CAClB,QAAS,CAGT,0BAA4B,CAF5B,YAkEF,CA9DE,yEACE,YACF,CAEA,mJAEE,SACF,CAEA,gKAEE,SAAU,CACV,QACF,CAEA,6DAGE,YAAa,CAGb,eAAiB,CALjB,YAAa,CACb,mCAAqC,CAErC,QAAS,CAGT,sBAAuB,CAFvB,SAAY,CAGZ,WAsCF,CApCE,gEAEE,WAAyB,CACzB,eAAgB,CAFhB,QAAS,CAGT,sBA+BF,CA7BE,uEAGE,kBAAmB,CAUnB,4BAA6B,CAD7B,WAAY,CAFZ,UAAc,CATd,YAAa,CAQb,aAAsC,CAHtC,WAAY,CAJZ,sBAAuB,CAKvB,WAAY,CAHZ,iBAAkB,CAIlB,oBAAqB,CAGrB,cAAgB,CANhB,UAuBF,CAbE,6EACE,qBACF,CAEA,2EAEE,WAAY,CACZ,iBAAkB,CAFlB,UAGF,CAEA,4EACE,aACF,CAMR,4CACE,YAAa,CACb,QAAS,CACT,SAAU,CACV,iBAoCF,CAnCE,kDAOE,qBAAsB,CANtB,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAIlB,UAAW,CADX,OAAQ,CAFR,SAKF,CAEA,+CAEE,eAAgB,CADhB,QAuBF,CApBE,sDAQE,4BAA6B,CAD7B,WAAY,CAJZ,aAAc,CAFd,WAAY,CACZ,gBAAiB,CAEjB,gBAAiB,CACjB,iBAAkB,CAClB,cAaF,CATE,4DACE,qBACF,CAEA,0DAEE,WAAY,CACZ,sBAAuB,CAFvB,UAGF,CAKN,2CACE,yBAKF,CAHE,wDACE,YACF,CAGF,yCAWE,kCAAuC,CADvC,UAAY,CAFZ,WAAY,CAPZ,aAAc,CAMd,WAAY,CAFZ,MAAO,CAOP,mBAAoB,CAVpB,iBAAkB,CAOlB,iBAAkB,CALlB,KAAM,CAEN,UAAW,CAHX,WAUF,CAIA,oCACE,eACF,CAEA,mCAEE,aAAc,CADd,eAEF,CAIE,8CAEE,cAAe,CACf,cAAe,CAFf,iBAWF,CAPE,0DACE,cACF,CAEA,yDACE,eACF,CAIJ,sCAIE,eAAiB,CAGjB,qBAAsB,CAJtB,SAAU,CAFV,iBAAkB,CAKlB,SAAU,CAJV,sBAAkB,CAAlB,iBAAkB,CAGlB,YAqDF,CAjDE,qEACE,WACF,CAEA,kEAKE,sBAAuB,CADvB,WAAY,CAEZ,cAAe,CALf,WAAY,CAEZ,SAAU,CAIV,cAAgB,CALhB,UAmBF,CAbE,sEAEE,WAAY,CACZ,SAAU,CAEV,iBAAkB,CADlB,QAAS,CAHT,UAKF,CACA,wEACE,qBACF,CACA,wEACE,YACF,CAGF,mDACE,eACF,CAEA,8DAEE,SAAU,CADV,SAEF,CAEA,mEACE,YACF,CAEA,+EACE,qBAAsB,CACtB,iBAAkB,CAClB,SAAU,CACV,SAIF,CAHE,uGACE,SACF,CAIJ,oDACE,YACF,CAEA,2CAOE,6BAAoC,CAKpC,qBAAsB,CAFtB,UAAW,CATX,cAAuC,CAGvC,WAAY,CACZ,MAAS,CAMT,YAAa,CATb,iBAAkB,CAIlB,QAAS,CAQT,0BAA4B,CAX5B,UAAW,CAKX,YAgCF,CAxBE,mJAEE,SACF,CAEA,gKAEE,SACF,CAEA,8CAEE,QAAS,CADT,SAYF,CAVE,iDACE,iBAQF,CAPE,uDACE,cACF,CACA,uDACE,cAAe,CACf,gBACF,CAKN,4CAME,eAAkC,CAIlC,qBAAsB,CADtB,UAAW,CANX,WAAY,CAFZ,iBAAkB,CAGlB,UAAW,CACX,QAAS,CAOT,kCAAoC,CAVpC,UAAW,CAKX,YA+BF,CAxBE,uJAEE,SACF,CAEA,mKAEE,SACF,CAEA,6FACE,WAAY,CACZ,QACF,CAEA,gEACE,eAAgB,CAEhB,QAAS,CADT,SAEF,CAEA,2DACE,eACF,CAIF,0BACE,kBACF,CACA,4BACE,iBACF,CAEA,sCAIE,WAAY,CADZ,UAAW,CAEX,QAAS,CACT,SAAU,CALV,iBAAkB,CAClB,SAKF,CAGA,iCACE,mBACF,CAEA,mCACE,mBAAoB,CACpB,mBAMF,CAJI,+YACE,gBACF,CAIJ,iCACE,UACF,CAEA,gCAUE,kBAAmB,CAHnB,6BAAoC,CAEpC,YAAa,CAJb,WAAY,CAMZ,sBAAuB,CARvB,MAAO,CAGP,eAAgB,CALhB,cAAe,CACf,KAAM,CAEN,UAyGF,CAhGE,8CACE,0BACF,CAEE,kEAEE,iBAAkB,CADlB,SAEF,CAIA,0IAEE,YAAa,CADb,SAEF,CAGA,wEAEE,iBAAkB,CADlB,SAEF,CAGF,sDACE,eAAiB,CAGjB,iBAAkB,CAClB,oCAAuC,CAFvC,eAAgB,CADhB,WAIF,CAEA,qDAIE,4BAA6B,CAH7B,YAAa,CACb,6BAA8B,CAC9B,YAEF,CAEA,wDAQE,eAAgB,CAJhB,QAAS,CACT,UAAW,CAJX,cAAe,CACf,eAAgB,CAChB,aAAc,CAId,UAAY,CADZ,wBAOF,CAHE,8DACE,UACF,CAGF,oDACE,gBAAsC,CACtC,eAAmB,CACnB,QACF,CAEA,mDACE,YACF,CAEA,qDAEE,yBAA0B,CAD1B,YAAa,CAEb,gBAKF,CAHE,mEACE,eACF,CAGF,kDAEE,kBAAmB,CADnB,YAAa,CAEb,mBAmBF,CAjBE,qEAEE,aAAc,CAEd,cAAe,CADf,gBAAiB,CAEjB,kBAAmB,CAJnB,SAKF,CAEA,+DA/2BJ,cAA0B,CAC1B,eAAmB,CAEnB,cAAe,CADf,WAq3BI,CAn3BJ,qEAEE,qBAAsB,CADtB,mBAEF,CCVF,+DDs3BQ,qBAAsB,CACtB,iBAAkB,CAClB,wCAA2C,CAC3C,WAAY,CAJZ,aAAc,CADd,S,CAWR,2BAEI,4BAEE,aAAc,CADd,SAEF,CAEA,0CAEE,WAAY,CACZ,iBAAkB,CAFlB,UAUF,CAPE,iDAGE,mBAAoB,CAFpB,cAAe,CAGf,sBAAuB,CAFvB,iBAAkB,CAGlB,QACF,CAGF,iCAEE,uBAAkC,CADlC,WAEF,CAEA,gEAOE,uBAAkC,CADlC,oBAAqB,CAFrB,2BAA+B,CAD/B,WAAY,CAEZ,YAAkB,CAHlB,UAMF,CAEE,oJAGE,WAAY,CADZ,UAEF,CAGF,gCAIE,cAAe,CAHf,WAAY,CACZ,gBAAiB,CACjB,SAOF,CALE,uCAGE,cAAe,CAFf,WAAY,CACZ,gBAEF,CAEF,uDACE,6BACF,CACA,4CACE,sBAiBF,CAfI,sDACE,gBAKF,CAJE,0DAEE,WAAY,CADZ,UAEF,CAGJ,kDAEE,UAAW,CAEX,QAAS,CADT,KAAQ,CAFR,uBAAwB,CAIxB,WACF,CAIA,mDACE,cACF,CAGF,sCAGE,QAAS,CADT,MAAO,CADP,oBA0BF,CAtBE,mEACE,aAAc,CACd,WACF,CAIE,0OAEE,oBACF,CAGF,0EACE,YAAa,CAEb,kBAAmB,CADnB,cAEF,CAEA,kEACE,qBACF,CAMA,uRAEE,sCACF,CAGF,oDAQE,qBAAyB,CADzB,qBAAyB,CAFzB,QAAS,CAJT,cAAe,CAEf,WAAY,CADZ,iBAAkB,CAIlB,OAAQ,CAFR,SAKF,CACA,8FAEE,kBAAqB,CACrB,WACF,CAGE,gFACE,aACF,CACA,kFAIE,4BAA6B,CAD7B,QAAS,CAFT,QAAW,CACX,OAQF,CALE,kMAEE,cAAiB,CACjB,UACF,CAIJ,sCACE,aAOF,CALE,2LAGE,YACF,CAMI,uEACE,cAAe,CACf,aAMF,CALE,2EAEE,WAAY,CACZ,iBAAkB,CAFlB,UAGF,CAKR,kFACE,cACF,CACA,4CACE,gBAAiB,CAEjB,OAAU,CADV,QAEF,CAGE,sDACE,wBACF,CAEE,qEACE,WACF,CAIR","sources":["webpack:///./mt-block-editor.scss","webpack:///"],"sourcesContent":["$root-font-size: 16px;\n\n@define-mixin input {\n font-size: $root-font-size;\n font-weight: normal;\n padding: 6px;\n margin-top: 4px;\n &:focus {\n outline-offset: -2px;\n outline: #ddd auto 3px;\n }\n}\n\n@define-mixin full-width {\n width: calc(100% - 2px) !important;\n}\n\n@define-mixin form-button {\n padding: 6px 12px;\n border-radius: 3px;\n font-size: 14px;\n border: 1px solid #dddddd;\n color: #333333;\n background-color: #fff;\n cursor: pointer;\n &:hover {\n background-color: #f5f5f5;\n }\n}\n\n.mt-block-editor-overlay-open {\n overflow: hidden;\n}\n\n.mt-block-editor {\n .mt-be-app {\n padding: 0 40px 0 40px;\n font-size: initial;\n }\n\n h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre {\n font-size: inherit;\n line-height: inherit;\n font-family: inherit;\n word-break: break-all;\n margin: 0;\n }\n\n .mt-be-btn-default {\n @mixin form-button;\n }\n\n .mt-be-btn-primary {\n @mixin form-button;\n background-color: #337ab7;\n color: #fff;\n &:hover {\n background-color: #286090;\n }\n }\n\n .mt-be-btn-add {\n width: 100%;\n display: block;\n padding: 8px 0;\n border: 0;\n background-color: transparent;\n transition: 0.1s;\n color: #666;\n font-size: 11px;\n &:focus {\n outline: none;\n background-color: #eee;\n }\n &:hover {\n cursor: pointer;\n background-color: #eee;\n }\n }\n\n .mt-be-btn-command {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n border: 0;\n background-color: transparent;\n color: #666;\n font-size: calc($root-font-size * 0.75);\n\n span {\n white-space: nowrap;\n text-transform: capitalize;\n }\n\n @media (min-width: 991.5px) {\n min-width: 130px;\n padding: 12px 13px;\n &:focus,\n &:hover {\n outline: none;\n cursor: pointer;\n background-color: #eee;\n }\n\n img {\n vertical-align: text-top;\n width: 13px;\n margin-right: 4px;\n }\n }\n\n @media (max-width: 991.5px) {\n width: 100%;\n height: 40px;\n line-height: 40px;\n padding: 0;\n\n img {\n display: none;\n }\n }\n }\n\n .mt-be-btn-add-bottom {\n width: 100%;\n position: relative;\n\n .mt-be-btn-wrap {\n width: 100%;\n display: flex;\n position: relative;\n\n &.mt-be-btn-wrap--only-shortcuts {\n .mt-be-btn-add {\n display: none;\n }\n\n @media (min-width: 991.5px) {\n width: auto;\n display: inline-block;\n\n .mt-be-shortcut-block-list {\n &:after {\n width: 0;\n }\n }\n }\n\n @media (max-width: 991.5px) {\n .mt-be-shortcut-block-list {\n &:after {\n height: 0;\n }\n }\n }\n }\n\n &::after {\n content: \"\";\n z-index: 999;\n background-image: linear-gradient(\n to right,\n #999,\n #999 2px,\n transparent 2px,\n transparent 5px\n ),\n linear-gradient(\n to right,\n #999,\n #999 2px,\n transparent 2px,\n transparent 5px\n ),\n linear-gradient(\n to bottom,\n #999,\n #999 2px,\n transparent 2px,\n transparent 5px\n ),\n linear-gradient(\n to bottom,\n #999,\n #999 2px,\n transparent 2px,\n transparent 5px\n );\n background-size: 5px 1px, 5px 1px, 1px 5px, 1.1px 5px;\n background-position: left top, left bottom, left top, right top;\n background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n pointer-events: none;\n }\n }\n }\n\n .mt-be-btn-remove {\n background: none;\n border: none;\n cursor: pointer;\n width: 20px;\n height: 20px;\n content: \"\";\n background: url(./img/remove.svg) no-repeat;\n background-size: 20px;\n color: #666;\n font-size: 11px;\n }\n\n .mt-be-btn-move {\n background: none;\n border: none;\n cursor: move;\n width: 18px;\n height: 18px;\n background: url(./img/move.svg) no-repeat;\n background-size: 18px;\n }\n\n .mt-be-btn-up {\n background: none;\n border: none;\n cursor: pointer;\n width: 18px;\n height: 18px;\n background: url(./img/up.svg) no-repeat;\n background-size: 18px;\n }\n\n .mt-be-btn-command-panel {\n background: none;\n border: none;\n cursor: pointer;\n width: 18px;\n height: 18px;\n &:before {\n color: #000;\n content: \"…\";\n }\n }\n\n .mt-be-btn-down {\n background: none;\n border: none;\n cursor: pointer;\n width: 18px;\n height: 18px;\n background: url(./img/down.svg) no-repeat;\n background-size: 18px;\n }\n\n .mt-be-block-wrapper {\n position: relative;\n display: flex;\n align-items: flex-start;\n\n .mt-be-btn-add {\n transition: 0.1s;\n }\n\n .mt-be-btn-remove-wrapper {\n position: absolute;\n right: -30px;\n display: flex;\n flex-direction: column;\n visibility: hidden;\n top: calc(50% - 18px);\n button {\n transition: 0.1s;\n &:hover {\n opacity: 0.5;\n }\n }\n }\n &.mt-be-focus-leader > .mt-be-btn-remove-wrapper {\n visibility: visible;\n z-index: 50;\n }\n\n .mt-be-btn-move-wrapper {\n position: absolute;\n left: -30px;\n height: 50px;\n top: calc(50% - 35px);\n display: flex;\n flex-direction: column;\n visibility: hidden;\n\n .mt-be-btn-up,\n .mt-be-btn-move,\n .mt-be-btn-down {\n transition: 0.1s;\n &:hover {\n opacity: 0.3;\n }\n }\n }\n\n &.mt-be-focus-leader > .mt-be-btn-move-wrapper {\n visibility: visible;\n }\n\n .mt-be-btn-add-wrapper {\n width: 100%;\n height: 40px;\n top: -20px;\n display: block;\n position: absolute;\n cursor: pointer;\n\n .mt-be-btn-add {\n width: 100%;\n transition: 0.1s;\n position: relative;\n text-align: left;\n background-color: transparent;\n opacity: 0;\n\n &:before {\n position: absolute;\n content: \"+\";\n left: calc(50% - 16px);\n top: -4px;\n width: 32px;\n height: 32px;\n line-height: 32px;\n text-align: center;\n font-weight: bold;\n font-size: 32px;\n transition: 0.1s;\n color: #666;\n padding: 0 2px;\n z-index: 400;\n text-shadow: 4px 4px 0 #fff, -4px -4px 0 #fff, -4px 4px 0 #fff,\n 4px -4px 0 #fff, 0px 4px 0 #fff, 0 -4px 0 #fff, -4px 0 0 #fff,\n 4px 0 0 #fff;\n }\n\n &:after {\n background-size: 0px, 5px 1px, 0px, 0px;\n z-index: -1;\n }\n &:hover {\n opacity: 1;\n }\n }\n }\n }\n\n .mt-be-block {\n width: 100%;\n position: relative;\n padding: 8px;\n margin-bottom: $root-font-size;\n transition: 0.1s;\n &:hover,\n &:focus,\n &:focus-within {\n box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.4);\n }\n\n .mt-be-input-container {\n border: 1px solid rgb(118, 118, 118);\n border-radius: 3px;\n padding: 6px;\n }\n\n .mt-be-input {\n @mixin input;\n }\n\n .mt-be-input--static {\n @mixin input;\n display: inline-block;\n margin-top: 10px;\n }\n\n .mt-be-input--full-width {\n @mixin full-width;\n }\n\n .mt-be-label-name {\n display: inline-block;\n width: 100%;\n margin-bottom: 20px;\n font-size: calc($root-font-size * 0.75);\n font-weight: normal;\n font-family: inherit;\n line-height: normal;\n color: #666;\n > input,\n > textarea,\n > select {\n @mixin input;\n @mixin full-width;\n }\n\n + .mt-be-input-container,\n + .mt-be-input {\n display: block;\n margin-top: -16px;\n }\n }\n\n .mt-be-content-label {\n pointer-events: none;\n position: absolute;\n top: -9px;\n left: 4px;\n padding: 0 5px;\n font-size: calc($root-font-size * 0.75);\n color: #666;\n transition: 0.1s;\n background: white;\n opacity: 0;\n }\n &:hover > .mt-be-content-label {\n opacity: 1;\n }\n hr {\n border-top: 1px solid #666;\n }\n }\n\n .mt-be-block-wrapper .mt-be-block {\n .mt-be-btn-move-wrapper {\n left: -40px;\n }\n }\n\n .mt-be-block-list-wrapper {\n display: flex;\n justify-content: center;\n position: absolute;\n top: 20px;\n z-index: 1100;\n left: calc(50% - 144px);\n transition: 0.1s ease-in-out;\n\n &.mt-be-block-list-wrapper-none {\n display: none;\n }\n\n &.mt-be-block-list-wrapper-enter,\n &.mt-be-block-list-wrapper-exit {\n opacity: 0;\n }\n\n &.mt-be-block-list-wrapper-enter-active,\n &.mt-be-block-list-wrapper-enter-done {\n opacity: 1;\n top: 32px;\n }\n\n .mt-be-block-list {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 1px;\n margin: 0;\n padding: 0px;\n background: white;\n outline: 1px solid #ddd;\n width: 290px;\n\n li {\n margin: 0;\n height: calc(68px + 16px);\n list-style: none;\n outline: 1px solid #eee;\n\n button {\n display: flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n width: 100%;\n height: 100%;\n padding: 8px;\n text-decoration: none;\n font-size: calc($root-font-size * 0.5);\n color: #333333;\n transition: 0.1s;\n border: none;\n background-color: transparent;\n\n &:hover {\n background-color: #eee;\n }\n\n img {\n width: 20px;\n height: 20px;\n margin-bottom: 8px;\n }\n\n span {\n display: block;\n }\n }\n }\n }\n }\n\n .mt-be-shortcut-block-list {\n display: flex;\n margin: 0;\n padding: 0;\n position: relative;\n &:after {\n content: \"\";\n position: absolute;\n width: 1px;\n height: 28px;\n top: 7px;\n right: -1px;\n background-color: #ddd;\n }\n\n li {\n margin: 0;\n list-style: none;\n\n button {\n height: 40px;\n line-height: 40px;\n display: block;\n padding: 2px 10px;\n position: relative;\n transition: 0.1s;\n border: none;\n background-color: transparent;\n\n &:hover {\n background-color: #eee;\n }\n\n img {\n width: 16px;\n height: 16px;\n vertical-align: inherit;\n }\n }\n }\n }\n\n .mt-be-focus .mt-be-block {\n outline: 2px solid #337ab7;\n\n .mt-be-block {\n outline: none;\n }\n }\n\n .mt-be-droppable:before {\n display: block;\n position: absolute;\n z-index: 200;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n content: \" \";\n text-align: center;\n color: white;\n background-color: rgba(21, 50, 76, 0.9);\n pointer-events: none;\n }\n\n /* setup */\n\n .mt-be-label-block {\n font-weight: bold;\n }\n\n .mt-be-help-block {\n font-weight: normal;\n color: #737373;\n }\n\n /* mt-be-columns */\n .mt-be-columns {\n .mt-be-column {\n position: relative;\n flex-basis: 50%;\n padding: 0 15px;\n\n &:first-child {\n padding-left: 0;\n }\n\n &:last-child {\n padding-right: 0;\n }\n }\n }\n\n .mt-be-block-toolbar {\n position: absolute;\n width: max-content;\n left: -8px;\n background: white;\n z-index: 1000;\n top: -39px;\n border: 1px solid #ddd;\n\n &.mt-be-block-toolbar--no-border {\n border: none;\n }\n\n .mt-be-block-toolbar-button {\n height: 32px;\n width: 32px;\n padding: 0;\n border: none;\n background: transparent;\n cursor: pointer;\n transition: 0.1s;\n img {\n width: 16px;\n height: 16px;\n left: -1px;\n top: -2px;\n position: relative;\n }\n &:hover {\n background-color: #eee;\n }\n &:focus {\n outline: none;\n }\n }\n\n .mce-tinymce {\n box-shadow: none;\n }\n\n &.mt-be-block-toolbar--x2 {\n top: -70px;\n left: -1px;\n }\n\n &.mt-be-block-toolbar--default {\n display: none;\n }\n\n &.mt-be-block-toolbar--mt-rich-text-editor {\n border: 1px solid #ddd;\n border-radius: 4px;\n left: -1px;\n top: -43px;\n &.mt-be-block-toolbar--x2 {\n top: -85px;\n }\n }\n }\n\n .mt-be-block-toolbar-default-items {\n display: none;\n }\n\n .mt-be-block-config-panel {\n font-size: calc($root-font-size * 0.75);\n position: absolute;\n width: auto;\n height: auto;\n left: 0px;\n top: -4px;\n background: rgba(255, 255, 255, 0.9);\n z-index: 1000;\n\n color: #666;\n padding: 12px;\n border: 1px solid #ddd;\n\n transition: 0.1s ease-in-out;\n\n &.mt-be-block-config-panel-enter,\n &.mt-be-block-config-panel-exit {\n opacity: 0;\n }\n\n &.mt-be-block-config-panel-enter-active,\n &.mt-be-block-config-panel-enter-done {\n opacity: 1;\n }\n\n ul {\n padding: 0;\n margin: 0;\n li {\n margin-right: 12px;\n label {\n cursor: pointer;\n }\n input {\n cursor: pointer;\n margin-right: 4px;\n }\n }\n }\n }\n\n .mt-be-block-command-panel {\n position: absolute;\n width: auto;\n height: auto;\n right: 20px;\n top: -4px;\n background: rgba(255, 255, 255, 1);\n z-index: 2000;\n\n color: #666;\n border: 1px solid #ddd;\n\n transition: opacity 0.1s ease-in-out;\n\n &.mt-be-block-command-panel-enter,\n &.mt-be-block-command-panel-exit {\n opacity: 0;\n }\n\n &.mt-be-block-command-panel-enter-active,\n &.mt-be-block-command-panel-exit-done {\n opacity: 1;\n }\n\n &[data-mt-be-block-command-panel-placement=\"bottom\"] {\n right: unset;\n top: 55px;\n }\n\n .mt-be-command-list {\n list-style: none;\n padding: 0;\n margin: 0;\n }\n\n .mt-be-btn-add {\n text-align: left;\n }\n }\n\n /* utility */\n .visible {\n visibility: visible;\n }\n .invisible {\n visibility: hidden;\n }\n\n .mt-be-input--hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n border: none;\n margin: 0;\n padding: 0;\n }\n\n /* tinymce */\n .mce-edit-focus {\n outline: 0px !important;\n }\n\n .mce-content-body {\n font-family: inherit;\n line-height: inherit;\n table:not(.mce-item-table) {\n tbody, td, tfoot, th, thead, tr {\n border-width: 1px;\n }\n }\n }\n\n .mce-item-table {\n width: 100%;\n }\n\n .mt-be-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow: scroll;\n background: rgba(255, 255, 255, 0.5);\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n .mt-be-dialog {\n transition: 0.3s ease-in-out;\n }\n &.mt-be-overlay-enter {\n .mt-be-dialog {\n opacity: 0;\n margin-top: -128px;\n }\n }\n &.mt-be-overlay-enter-active,\n &.mt-be-overlay-exit {\n .mt-be-dialog {\n opacity: 1;\n margin-top: 0;\n }\n }\n &.mt-be-overlay-exit-active {\n .mt-be-dialog {\n opacity: 0;\n margin-top: -128px;\n }\n }\n\n .mt-be-dialog-content {\n background: white;\n width: 600px;\n max-width: 600px;\n border-radius: 6px;\n box-shadow: 0 5px 15px rgb(0 0 0 / 50%);\n }\n\n .mt-be-dialog-header {\n display: flex;\n justify-content: space-between;\n padding: 10px;\n border-bottom: 1px solid #ddd;\n }\n\n .mt-be-dialog-btn-close {\n font-size: 21px;\n font-weight: 700;\n line-height: 1;\n border: 0;\n color: #000;\n text-shadow: 0 1px 0 #fff;\n opacity: 0.2;\n background: #fff;\n\n &:hover {\n opacity: 0.5;\n }\n }\n\n .mt-be-dialog-title {\n font-size: calc($root-font-size * 1.2);\n font-weight: normal;\n margin: 0;\n }\n\n .mt-be-dialog-body {\n padding: 10px;\n }\n\n .mt-be-dialog-footer {\n padding: 10px;\n border-top: 1px solid #ddd;\n text-align: right;\n\n button + button {\n margin-left: 5px;\n }\n }\n\n .mt-be-label-name {\n display: flex;\n align-items: center;\n margin-bottom: .9rem;\n\n .mt-be-label-block {\n width: 25%;\n max-width: 25%;\n text-align: right;\n padding: 0 15px;\n white-space: nowrap;\n }\n\n .mt-be-input {\n @mixin input;\n width: 75%;\n margin: 0 15px;\n border: 1px solid #ccc;\n border-radius: 4px;\n box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);\n height: 34px;\n }\n }\n }\n}\n\n@media (max-width: 991.5px) {\n .mt-block-editor {\n .mt-be-app {\n padding: 0 0;\n margin: 0 16px;\n }\n\n .mt-be-btn-command-panel {\n width: 32px;\n height: 34px;\n position: relative;\n &:before {\n font-size: 18px;\n position: relative;\n display: inline-flex;\n justify-content: center;\n top: -5px;\n }\n }\n\n .mt-be-btn-move {\n height: 28px;\n background-position: center center;\n }\n\n .mt-be-btn-up,\n .mt-be-btn-down {\n width: 34px;\n height: 35px;\n border-right: 1px solid #dddddd;\n padding: 12px 12px;\n background-size: 22px;\n background-position: center center;\n }\n .mt-be-block-toolbar--mt-rich-text-editor {\n .mt-be-btn-up,\n .mt-be-btn-down {\n width: 34px;\n height: 40px;\n }\n }\n\n .mt-be-btn-add {\n height: 40px;\n line-height: 40px;\n padding: 0;\n font-size: 12px;\n &:before {\n height: 28px;\n line-height: 28px;\n font-size: 12px;\n }\n }\n .mt-be-btn-add-bottom .mt-be-btn-wrap {\n flex-direction: column-reverse;\n }\n .mt-be-shortcut-block-list {\n justify-content: center;\n li {\n button {\n padding: 6px 12px;\n img {\n width: 24px;\n height: 24px;\n }\n }\n }\n &:after {\n width: calc(100% - 18px);\n height: 1px;\n top: 0px;\n left: 8px;\n z-index: 200;\n }\n }\n\n .mt-be-block {\n .mt-be-content-label {\n font-size: 12px;\n }\n }\n\n .mt-be-block-toolbar {\n width: 100% !important;\n left: 0;\n border: 0;\n\n &.mt-be-block-toolbar--default {\n display: block;\n height: 32px;\n }\n\n &.mt-be-block-toolbar--tinymce {\n width: 100% !important;\n .mce-tinymce,\n .mce-container-body {\n width: 100% !important;\n }\n }\n\n .mce-container-body.mce-flow-layout {\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n }\n\n .mt-be-block-toolbar-button {\n border: 1px solid #dddddd;\n }\n }\n\n .mt-be-columns .mt-be-block-toolbar.mt-be-block-toolbar--tinymce {\n max-width: calc(100vw - 15px) !important;\n\n .mce-tinymce,\n .mce-container-body {\n max-width: calc(100vw - 15px) !important;\n }\n }\n\n .mt-be-block-toolbar-default-items {\n display: inline;\n position: absolute;\n height: 36px;\n z-index: 3;\n bottom: 0;\n right: 0;\n border: 1px solid #dddddd;\n background-color: #ffffff;\n }\n .mt-be-block-toolbar--mt-rich-text-editor\n .mt-be-block-toolbar-default-items {\n border-width: 0 1px 0;\n height: 39px;\n }\n\n .mt-be-block-toolbar--tinymce {\n .mce-btn-group:not(:first-child) {\n border-left: 0px;\n }\n .mt-be-block-toolbar-default-items {\n bottom: 0px;\n right: 0px;\n border: 0;\n background-color: transparent;\n .mt-be-btn-up,\n .mt-be-btn-down {\n border-right: 0px;\n width: 26px;\n }\n }\n }\n\n .mt-be-block-wrapper {\n margin: 10px 0;\n\n .mt-be-btn-move-wrapper,\n .mt-be-btn-remove-wrapper,\n .mt-be-btn-add-wrapper {\n display: none;\n }\n }\n\n .mt-be-block-list-wrapper {\n .mt-be-block-list {\n li {\n button {\n font-size: 12px;\n line-height: 1;\n img {\n width: 24px;\n height: 24px;\n margin-bottom: 8px;\n }\n }\n }\n }\n }\n .mt-be-block-list-wrapper:not(.mt-be-block-list-wrapper--bottom) {\n position: fixed;\n }\n .mt-be-block-command-panel {\n padding: 4px 12px;\n top: -4px;\n right: 0px;\n }\n\n .mt-be-overlay {\n .mt-be-dialog-content {\n width: calc(100vw - 32px);\n }\n .mt-be-label-name {\n .mt-be-label-block {\n width: 200px;\n }\n }\n }\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.5/mt-block-editor.js b/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.5/mt-block-editor.js deleted file mode 100644 index 1e99cb0..0000000 --- a/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.5/mt-block-editor.js +++ /dev/null @@ -1,9 +0,0 @@ -/*! -# Movable Type Block Editor (C) 2020 Six Apart Ltd. All Rights Reserved. -# This code cannot be redistributed without permission from www.sixapart.com. -# -# This distribution contains several open source products. -# Their license information can be found in mt-block-editor.js.LICENSE.txt. - */ -(()=>{var e={8393:e=>{e.exports={locales:["en","ja"]}},6689:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},6637:(e,t,n)=>{var r=n(6827);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},990:(e,t,n)=>{var r=n(7166),o=n(3981),i=n(7614),a=r("unscopables"),u=Array.prototype;null==u[a]&&i.f(u,a,{configurable:!0,value:o(null)}),e.exports=function(e){u[a][e]=!0}},4958:(e,t,n)=>{"use strict";var r=n(520).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},26:e=>{e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},1326:(e,t,n)=>{var r=n(6827);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},6650:(e,t,n)=>{"use strict";var r=n(4440),o=n(847),i=n(9223);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>u;)t[u++]=e;return t}},9352:(e,t,n)=>{"use strict";var r=n(5860).forEach,o=n(8809),i=n(778),a=o("forEach"),u=i("forEach");e.exports=a&&u?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},1871:(e,t,n)=>{"use strict";var r=n(8273),o=n(4440),i=n(9448),a=n(9254),u=n(9223),l=n(1861),c=n(3054);e.exports=function(e){var t,n,s,f,d,p,h=o(e),v="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,y=void 0!==g,b=c(h),w=0;if(y&&(g=r(g,m>2?arguments[2]:void 0,2)),null==b||v==Array&&a(b))for(n=new v(t=u(h.length));t>w;w++)p=y?g(h[w],w):h[w],l(n,w,p);else for(d=(f=b.call(h)).next,n=new v;!(s=d.call(f)).done;w++)p=y?i(f,g,[s.value,w],!0):s.value,l(n,w,p);return n.length=w,n}},5254:(e,t,n)=>{var r=n(3016),o=n(9223),i=n(847),a=function(e){return function(t,n,a){var u,l=r(t),c=o(l.length),s=i(a,c);if(e&&n!=n){for(;c>s;)if((u=l[s++])!=u)return!0}else for(;c>s;s++)if((e||s in l)&&l[s]===n)return e||s||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},5860:(e,t,n)=>{var r=n(8273),o=n(8188),i=n(4440),a=n(9223),u=n(5309),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,s=4==e,f=6==e,d=5==e||f;return function(p,h,v,m){for(var g,y,b=i(p),w=o(b),k=r(h,v,3),x=a(w.length),E=0,S=m||u,O=t?S(p,x):n?S(p,0):void 0;x>E;E++)if((d||E in w)&&(y=k(g=w[E],E,b),e))if(t)O[E]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return E;case 2:l.call(O,g)}else if(s)return!1;return f?-1:c||s?s:O}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},6894:(e,t,n)=>{var r=n(8462),o=n(7166),i=n(5649),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},8809:(e,t,n)=>{"use strict";var r=n(8462);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},778:(e,t,n)=>{var r=n(6953),o=n(8462),i=n(991),a=Object.defineProperty,u={},l=function(e){throw e};e.exports=function(e,t){if(i(u,e))return u[e];t||(t={});var n=[][e],c=!!i(t,"ACCESSORS")&&t.ACCESSORS,s=i(t,0)?t[0]:l,f=i(t,1)?t[1]:void 0;return u[e]=!!n&&!o((function(){if(c&&!r)return!0;var e={length:-1};c?a(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,s,f)}))}},9857:(e,t,n)=>{var r=n(6689),o=n(4440),i=n(8188),a=n(9223),u=function(e){return function(t,n,u,l){r(n);var c=o(t),s=i(c),f=a(c.length),d=e?f-1:0,p=e?-1:1;if(u<2)for(;;){if(d in s){l=s[d],d+=p;break}if(d+=p,e?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=p)d in s&&(l=n(l,s[d],d,c));return l}};e.exports={left:u(!1),right:u(!0)}},5309:(e,t,n)=>{var r=n(6827),o=n(3115),i=n(7166)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},9448:(e,t,n)=>{var r=n(1326);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},5239:(e,t,n)=>{var r=n(7166)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},661:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},9794:(e,t,n)=>{var r=n(3557),o=n(661),i=n(7166)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},431:(e,t,n)=>{"use strict";var r=n(1326),o=n(6689);e.exports=function(){for(var e=r(this),t=o(e.add),n=0,i=arguments.length;n{"use strict";var r=n(1326),o=n(6689);e.exports=function(){for(var e,t=r(this),n=o(t.delete),i=!0,a=0,u=arguments.length;a{"use strict";var r=n(7614).f,o=n(3981),i=n(5783),a=n(8273),u=n(26),l=n(6357),c=n(2527),s=n(6080),f=n(6953),d=n(2634).fastKey,p=n(3962),h=p.set,v=p.getterFor;e.exports={getConstructor:function(e,t,n,c){var s=e((function(e,r){u(e,s,t),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&l(r,e[c],e,n)})),p=v(t),m=function(e,t,n){var r,o,i=p(e),a=g(e,t);return a?a.value=n:(i.last=a={index:o=d(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},g=function(e,t){var n,r=p(e),o=d(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(s.prototype,{clear:function(){for(var e=p(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=this,n=p(t),r=g(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=p(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),i(s.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),f&&r(s.prototype,"size",{get:function(){return p(this).size}}),s},setStrong:function(e,t,n){var r=t+" Iterator",o=v(t),i=v(r);c(e,t,(function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),s(t)}}},6939:(e,t,n)=>{"use strict";var r=n(5689),o=n(2756),i=n(5149),a=n(57),u=n(2634),l=n(6357),c=n(26),s=n(6827),f=n(8462),d=n(5239),p=n(5142),h=n(3042);e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),g=v?"set":"add",y=o[e],b=y&&y.prototype,w=y,k={},x=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!s(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!s(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!s(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof y||!(m||b.forEach&&!f((function(){(new y).entries().next()})))))w=n.getConstructor(t,e,v,g),u.REQUIRED=!0;else if(i(e,!0)){var E=new w,S=E[g](m?{}:-0,1)!=E,O=f((function(){E.has(1)})),T=d((function(e){new y(e)})),C=!m&&f((function(){for(var e=new y,t=5;t--;)e[g](t,t);return!e.has(-0)}));T||((w=t((function(t,n){c(t,w,e);var r=h(new y,t,w);return null!=n&&l(n,r[g],r,v),r}))).prototype=b,b.constructor=w),(O||C)&&(x("delete"),x("has"),v&&x("get")),(C||S)&&x(g),m&&b.clear&&delete b.clear}return k[e]=w,r({global:!0,forced:w!=y},k),p(w,e),m||n.setStrong(w,e,v),w}},9621:(e,t,n)=>{var r=n(991),o=n(1804),i=n(172),a=n(7614);e.exports=function(e,t){for(var n=o(t),u=a.f,l=i.f,c=0;c{var r=n(7166)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},6036:(e,t,n)=>{var r=n(8462);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},7179:(e,t,n)=>{var r=n(5065),o=/"/g;e.exports=function(e,t,n,i){var a=String(r(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+String(i).replace(o,""")+'"'),u+">"+a+""}},3087:(e,t,n)=>{"use strict";var r=n(3774).IteratorPrototype,o=n(3981),i=n(9367),a=n(5142),u=n(7240),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,c,!1,!0),u[c]=l,e}},4100:(e,t,n)=>{var r=n(6953),o=n(7614),i=n(9367);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9367:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},1861:(e,t,n)=>{"use strict";var r=n(7806),o=n(7614),i=n(9367);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},9565:(e,t,n)=>{"use strict";var r=n(1326),o=n(7806);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!==e)}},2527:(e,t,n)=>{"use strict";var r=n(5689),o=n(3087),i=n(6166),a=n(4322),u=n(5142),l=n(4100),c=n(57),s=n(7166),f=n(7690),d=n(7240),p=n(3774),h=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,m=s("iterator"),g="keys",y="values",b="entries",w=function(){return this};e.exports=function(e,t,n,s,p,k,x){o(n,t,s);var E,S,O,T=function(e){if(e===p&&N)return N;if(!v&&e in I)return I[e];switch(e){case g:case y:case b:return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",P=!1,I=e.prototype,j=I[m]||I["@@iterator"]||p&&I[p],N=!v&&j||T(p),R="Array"==t&&I.entries||j;if(R&&(E=i(R.call(new e)),h!==Object.prototype&&E.next&&(f||i(E)===h||(a?a(E,h):"function"!=typeof E[m]&&l(E,m,w)),u(E,C,!0,!0),f&&(d[C]=w))),p==y&&j&&j.name!==y&&(P=!0,N=function(){return j.call(this)}),f&&!x||I[m]===N||l(I,m,N),d[t]=N,p)if(S={values:T(y),keys:k?N:T(g),entries:T(b)},x)for(O in S)(v||P||!(O in I))&&c(I,O,S[O]);else r({target:t,proto:!0,forced:v||P},S);return S}},4300:(e,t,n)=>{var r=n(8844),o=n(991),i=n(766),a=n(7614).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},6953:(e,t,n)=>{var r=n(8462);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3018:(e,t,n)=>{var r=n(2756),o=n(6827),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},8993:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},550:(e,t,n)=>{var r=n(5441);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},5441:(e,t,n)=>{var r=n(5072);e.exports=r("navigator","userAgent")||""},5649:(e,t,n)=>{var r,o,i=n(2756),a=n(5441),u=i.process,l=u&&u.versions,c=l&&l.v8;c?o=(r=c.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},4798:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},5689:(e,t,n)=>{var r=n(2756),o=n(172).f,i=n(4100),a=n(57),u=n(1979),l=n(9621),c=n(5149);e.exports=function(e,t){var n,s,f,d,p,h=e.target,v=e.global,m=e.stat;if(n=v?r:m?r[h]||u(h,{}):(r[h]||{}).prototype)for(s in t){if(d=t[s],f=e.noTargetGet?(p=o(n,s))&&p.value:n[s],!c(v?s:h+(m?".":"#")+s,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(n,s,d,e)}}},8462:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},6031:(e,t,n)=>{"use strict";n(3188);var r=n(57),o=n(8462),i=n(7166),a=n(5866),u=n(4100),l=i("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),s="$0"==="a".replace(/./,"$0"),f=i("replace"),d=!!/./[f]&&""===/./[f]("a","$0"),p=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var h=i(e),v=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),m=v&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!v||!m||"replace"===e&&(!c||!s||d)||"split"===e&&!p){var g=/./[h],y=n(h,""[e],(function(e,t,n,r,o){return t.exec===a?v&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:s,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],w=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}f&&u(RegExp.prototype[h],"sham",!0)}},2284:(e,t,n)=>{"use strict";var r=n(3115),o=n(9223),i=n(8273),a=function(e,t,n,u,l,c,s,f){for(var d,p=l,h=0,v=!!s&&i(s,f,3);h0&&r(d))p=a(e,t,d,o(d.length),p,c-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=d}p++}h++}return p};e.exports=a},9947:(e,t,n)=>{var r=n(8462);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},8273:(e,t,n)=>{var r=n(6689);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},8631:(e,t,n)=>{"use strict";var r=n(6689),o=n(6827),i=[].slice,a={};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),u=function(){var r=n.concat(i.call(arguments));return this instanceof u?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o{var r=n(8844),o=n(2756),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},3054:(e,t,n)=>{var r=n(9794),o=n(7240),i=n(7166)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},898:(e,t,n)=>{var r=n(1326),o=n(3054);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},4159:(e,t,n)=>{var r=n(7690),o=n(898);e.exports=r?o:function(e){return Map.prototype.entries.call(e)}},8641:(e,t,n)=>{var r=n(7690),o=n(898);e.exports=r?o:function(e){return Set.prototype.values.call(e)}},2756:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||Function("return this")()},991:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},3472:e=>{e.exports={}},9974:(e,t,n)=>{var r=n(2756);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},1198:(e,t,n)=>{var r=n(5072);e.exports=r("document","documentElement")},7106:(e,t,n)=>{var r=n(6953),o=n(8462),i=n(3018);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8188:(e,t,n)=>{var r=n(8462),o=n(661),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},3042:(e,t,n)=>{var r=n(6827),o=n(4322);e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},1633:(e,t,n)=>{var r=n(410),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},2634:(e,t,n)=>{var r=n(3472),o=n(6827),i=n(991),a=n(7614).f,u=n(637),l=n(9947),c=u("meta"),s=0,f=Object.isExtensible||function(){return!0},d=function(e){a(e,c,{value:{objectID:"O"+ ++s,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,c)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[c].objectID},getWeakData:function(e,t){if(!i(e,c)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[c].weakData},onFreeze:function(e){return l&&p.REQUIRED&&f(e)&&!i(e,c)&&d(e),e}};r[c]=!0},3962:(e,t,n)=>{var r,o,i,a=n(1602),u=n(2756),l=n(6827),c=n(4100),s=n(991),f=n(5868),d=n(3472),p=u.WeakMap;if(a){var h=new p,v=h.get,m=h.has,g=h.set;r=function(e,t){return g.call(h,e,t),t},o=function(e){return v.call(h,e)||{}},i=function(e){return m.call(h,e)}}else{var y=f("state");d[y]=!0,r=function(e,t){return c(e,y,t),t},o=function(e){return s(e,y)?e[y]:{}},i=function(e){return s(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},9254:(e,t,n)=>{var r=n(7166),o=n(7240),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},3115:(e,t,n)=>{var r=n(661);e.exports=Array.isArray||function(e){return"Array"==r(e)}},5149:(e,t,n)=>{var r=n(8462),o=/#|\.prototype\./,i=function(e,t){var n=u[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},6827:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},7690:e=>{e.exports=!1},5237:(e,t,n)=>{var r=n(6827),o=n(661),i=n(7166)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},6357:(e,t,n)=>{var r=n(1326),o=n(9254),i=n(9223),a=n(8273),u=n(3054),l=n(9448),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,s,f){var d,p,h,v,m,g,y,b=a(t,n,s?2:1);if(f)d=e;else{if("function"!=typeof(p=u(e)))throw TypeError("Target is not iterable");if(o(p)){for(h=0,v=i(e.length);v>h;h++)if((m=s?b(r(y=e[h])[0],y[1]):b(e[h]))&&m instanceof c)return m;return new c(!1)}d=p.call(e)}for(g=d.next;!(y=g.call(d)).done;)if("object"==typeof(m=l(d,b,y.value,s))&&m&&m instanceof c)return m;return new c(!1)}).stop=function(e){return new c(!0,e)}},3774:(e,t,n)=>{"use strict";var r,o,i,a=n(6166),u=n(4100),l=n(991),c=n(7166),s=n(7690),f=c("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):d=!0),null==r&&(r={}),s||l(r,f)||u(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},7240:e=>{e.exports={}},4050:(e,t,n)=>{var r,o,i,a,u,l,c,s,f=n(2756),d=n(172).f,p=n(661),h=n(3102).set,v=n(550),m=f.MutationObserver||f.WebKitMutationObserver,g=f.process,y=f.Promise,b="process"==p(g),w=d(f,"queueMicrotask"),k=w&&w.value;k||(r=function(){var e,t;for(b&&(e=g.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},b?a=function(){g.nextTick(r)}:m&&!v?(u=!0,l=document.createTextNode(""),new m(r).observe(l,{characterData:!0}),a=function(){l.data=u=!u}):y&&y.resolve?(c=y.resolve(void 0),s=c.then,a=function(){s.call(c,r)}):a=function(){h.call(f,r)}),e.exports=k||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},653:(e,t,n)=>{var r=n(2756);e.exports=r.Promise},3165:(e,t,n)=>{var r=n(8462);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},5336:(e,t,n)=>{var r=n(8462),o=n(7166),i=n(7690),a=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},1602:(e,t,n)=>{var r=n(2756),o=n(1633),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},8920:(e,t,n)=>{"use strict";var r=n(6689),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},1960:(e,t,n)=>{var r=n(5237);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},5503:(e,t,n)=>{var r=n(2756),o=n(207).trim,i=n(7669),a=r.parseFloat,u=1/a(i+"-0")!=-1/0;e.exports=u?function(e){var t=o(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},4800:(e,t,n)=>{var r=n(2756),o=n(207).trim,i=n(7669),a=r.parseInt,u=/^[+-]?0[Xx]/,l=8!==a(i+"08")||22!==a(i+"0x16");e.exports=l?function(e,t){var n=o(String(e));return a(n,t>>>0||(u.test(n)?16:10))}:a},9484:(e,t,n)=>{"use strict";var r=n(6953),o=n(8462),i=n(4565),a=n(864),u=n(6492),l=n(4440),c=n(8188),s=Object.assign,f=Object.defineProperty;e.exports=!s||o((function(){if(r&&1!==s({b:1},s(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=s({},e)[n]||i(s({},t)).join("")!=o}))?function(e,t){for(var n=l(e),o=arguments.length,s=1,f=a.f,d=u.f;o>s;)for(var p,h=c(arguments[s++]),v=f?i(h).concat(f(h)):i(h),m=v.length,g=0;m>g;)p=v[g++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:s},3981:(e,t,n)=>{var r,o=n(1326),i=n(6434),a=n(4798),u=n(3472),l=n(1198),c=n(3018),s=n(5868),f="prototype",d="script",p=s("IE_PROTO"),h=function(){},v=function(e){return"<"+d+">"+e+""},m=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t,n;m=r?function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):(t=c("iframe"),n="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F);for(var o=a.length;o--;)delete m[f][a[o]];return m()};u[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[f]=o(e),n=new h,h[f]=null,n[p]=e):n=m(),void 0===t?n:i(n,t)}},6434:(e,t,n)=>{var r=n(6953),o=n(7614),i=n(1326),a=n(4565);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),u=r.length,l=0;u>l;)o.f(e,n=r[l++],t[n]);return e}},7614:(e,t,n)=>{var r=n(6953),o=n(7106),i=n(1326),a=n(7806),u=Object.defineProperty;t.f=r?u:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},172:(e,t,n)=>{var r=n(6953),o=n(6492),i=n(9367),a=n(3016),u=n(7806),l=n(991),c=n(7106),s=Object.getOwnPropertyDescriptor;t.f=r?s:function(e,t){if(e=a(e),t=u(t,!0),c)try{return s(e,t)}catch(e){}if(l(e,t))return i(!o.f.call(e,t),e[t])}},4113:(e,t,n)=>{var r=n(3016),o=n(4161).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},4161:(e,t,n)=>{var r=n(9583),o=n(4798).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},864:(e,t)=>{t.f=Object.getOwnPropertySymbols},6166:(e,t,n)=>{var r=n(991),o=n(4440),i=n(5868),a=n(6036),u=i("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,u)?e[u]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},9583:(e,t,n)=>{var r=n(991),o=n(3016),i=n(5254).indexOf,a=n(3472);e.exports=function(e,t){var n,u=o(e),l=0,c=[];for(n in u)!r(a,n)&&r(u,n)&&c.push(n);for(;t.length>l;)r(u,n=t[l++])&&(~i(c,n)||c.push(n));return c}},4565:(e,t,n)=>{var r=n(9583),o=n(4798);e.exports=Object.keys||function(e){return r(e,o)}},6492:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},4322:(e,t,n)=>{var r=n(1326),o=n(6637);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},9584:(e,t,n)=>{var r=n(6953),o=n(4565),i=n(3016),a=n(6492).f,u=function(e){return function(t){for(var n,u=i(t),l=o(u),c=l.length,s=0,f=[];c>s;)n=l[s++],r&&!a.call(u,n)||f.push(e?[n,u[n]]:u[n]);return f}};e.exports={entries:u(!0),values:u(!1)}},4536:(e,t,n)=>{"use strict";var r=n(3557),o=n(9794);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},1804:(e,t,n)=>{var r=n(5072),o=n(4161),i=n(864),a=n(1326);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},8844:(e,t,n)=>{var r=n(2756);e.exports=r},1542:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},9191:(e,t,n)=>{var r=n(1326),o=n(6827),i=n(8920);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},5783:(e,t,n)=>{var r=n(57);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},57:(e,t,n)=>{var r=n(2756),o=n(4100),i=n(991),a=n(1979),u=n(1633),l=n(3962),c=l.get,s=l.enforce,f=String(String).split("String");(e.exports=function(e,t,n,u){var l=!!u&&!!u.unsafe,c=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),s(n).source=f.join("string"==typeof t?t:"")),e!==r?(l?!d&&e[t]&&(c=!0):delete e[t],c?e[t]=n:o(e,t,n)):c?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||u(this)}))},5805:(e,t,n)=>{var r=n(661),o=n(5866);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},5866:(e,t,n)=>{"use strict";var r,o,i=n(4768),a=n(4124),u=RegExp.prototype.exec,l=String.prototype.replace,c=u,s=(r=/a/,o=/b*/g,u.call(r,"a"),u.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,d=void 0!==/()??/.exec("")[1];(s||d||f)&&(c=function(e){var t,n,r,o,a=this,c=f&&a.sticky,p=i.call(a),h=a.source,v=0,m=e;return c&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),m=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",m=" "+m,v++),n=new RegExp("^(?:"+h+")",p)),d&&(n=new RegExp("^"+h+"$(?!\\s)",p)),s&&(t=a.lastIndex),r=u.call(c?n:a,m),c?r?(r.input=r.input.slice(v),r[0]=r[0].slice(v),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:s&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),d&&r&&r.length>1&&l.call(r[0],n,(function(){for(o=1;o{"use strict";var r=n(1326);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},4124:(e,t,n)=>{"use strict";var r=n(8462);function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},5065:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},5892:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},1979:(e,t,n)=>{var r=n(2756),o=n(4100);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},6080:(e,t,n)=>{"use strict";var r=n(5072),o=n(7614),i=n(7166),a=n(6953),u=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[u]&&n(t,u,{configurable:!0,get:function(){return this}})}},5142:(e,t,n)=>{var r=n(7614).f,o=n(991),i=n(7166)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},5868:(e,t,n)=>{var r=n(3662),o=n(637),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},410:(e,t,n)=>{var r=n(2756),o=n(1979),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},3662:(e,t,n)=>{var r=n(7690),o=n(410);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},8576:(e,t,n)=>{var r=n(1326),o=n(6689),i=n(7166)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},7354:(e,t,n)=>{var r=n(8462);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},520:(e,t,n)=>{var r=n(8577),o=n(5065),i=function(e){return function(t,n){var i,a,u=String(o(t)),l=r(n),c=u.length;return l<0||l>=c?e?"":void 0:(i=u.charCodeAt(l))<55296||i>56319||l+1===c||(a=u.charCodeAt(l+1))<56320||a>57343?e?u.charAt(l):i:e?u.slice(l,l+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},5722:(e,t,n)=>{var r=n(5441);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},5826:(e,t,n)=>{var r=n(9223),o=n(2936),i=n(5065),a=Math.ceil,u=function(e){return function(t,n,u){var l,c,s=String(i(t)),f=s.length,d=void 0===u?" ":String(u),p=r(n);return p<=f||""==d?s:(l=p-f,(c=o.call(d,a(l/d.length))).length>l&&(c=c.slice(0,l)),e?s+c:c+s)}};e.exports={start:u(!1),end:u(!0)}},5298:e=>{"use strict";var t=2147483647,n=/[^\0-\u007E]/,r=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",i=Math.floor,a=String.fromCharCode,u=function(e){return e+22+75*(e<26)},l=function(e,t,n){var r=0;for(e=n?i(e/700):e>>1,e+=i(e/t);e>455;r+=36)e=i(e/35);return i(r+36*e/(e+38))},c=function(e){var n=[];e=function(e){for(var t=[],n=0,r=e.length;n=55296&&o<=56319&&n=f&&ci((t-d)/g))throw RangeError(o);for(d+=(m-f)*g,f=m,r=0;rt)throw RangeError(o);if(c==f){for(var y=d,b=36;;b+=36){var w=b<=p?1:b>=p+26?26:b-p;if(y{"use strict";var r=n(8577),o=n(5065);e.exports="".repeat||function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},207:(e,t,n)=>{var r=n(5065),o="["+n(7669)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),u=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},3102:(e,t,n)=>{var r,o,i,a=n(2756),u=n(8462),l=n(661),c=n(8273),s=n(1198),f=n(3018),d=n(550),p=a.location,h=a.setImmediate,v=a.clearImmediate,m=a.process,g=a.MessageChannel,y=a.Dispatch,b=0,w={},k="onreadystatechange",x=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},E=function(e){return function(){x(e)}},S=function(e){x(e.data)},O=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};h&&v||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return w[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},v=function(e){delete w[e]},"process"==l(m)?r=function(e){m.nextTick(E(e))}:y&&y.now?r=function(e){y.now(E(e))}:g&&!d?(i=(o=new g).port2,o.port1.onmessage=S,r=c(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||u(O)||"file:"===p.protocol?r=k in f("script")?function(e){s.appendChild(f("script"))[k]=function(){s.removeChild(this),x(e)}}:function(e){setTimeout(E(e),0)}:(r=O,a.addEventListener("message",S,!1))),e.exports={set:h,clear:v}},847:(e,t,n)=>{var r=n(8577),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},3016:(e,t,n)=>{var r=n(8188),o=n(5065);e.exports=function(e){return r(o(e))}},8577:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},9223:(e,t,n)=>{var r=n(8577),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},4440:(e,t,n)=>{var r=n(5065);e.exports=function(e){return Object(r(e))}},7806:(e,t,n)=>{var r=n(6827);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},3557:(e,t,n)=>{var r={};r[n(7166)("toStringTag")]="z",e.exports="[object z]"===String(r)},637:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},4717:(e,t,n)=>{var r=n(3165);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},766:(e,t,n)=>{var r=n(7166);t.f=r},7166:(e,t,n)=>{var r=n(2756),o=n(3662),i=n(991),a=n(637),u=n(3165),l=n(4717),c=o("wks"),s=r.Symbol,f=l?s:s&&s.withoutSetter||a;e.exports=function(e){return i(c,e)||(u&&i(s,e)?c[e]=s[e]:c[e]=f("Symbol."+e)),c[e]}},7669:e=>{e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},5423:(e,t,n)=>{"use strict";var r=n(5689),o=n(8462),i=n(3115),a=n(6827),u=n(4440),l=n(9223),c=n(1861),s=n(5309),f=n(6894),d=n(7166),p=n(5649),h=d("isConcatSpreadable"),v=9007199254740991,m="Maximum allowed index exceeded",g=p>=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),y=f("concat"),b=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!g||!y},{concat:function(e){var t,n,r,o,i,a=u(this),f=s(a,0),d=0;for(t=-1,r=arguments.length;tv)throw TypeError(m);for(n=0;n=v)throw TypeError(m);c(f,d++,i)}return f.length=d,f}})},690:(e,t,n)=>{var r=n(5689),o=n(6650),i=n(990);r({target:"Array",proto:!0},{fill:o}),i("fill")},8837:(e,t,n)=>{"use strict";var r=n(5689),o=n(5860).filter,i=n(6894),a=n(778),u=i("filter"),l=a("filter");r({target:"Array",proto:!0,forced:!u||!l},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},8280:(e,t,n)=>{"use strict";var r=n(5689),o=n(5860).find,i=n(990),a=n(778),u="find",l=!0,c=a(u);u in[]&&Array(1)[u]((function(){l=!1})),r({target:"Array",proto:!0,forced:l||!c},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(u)},7316:(e,t,n)=>{"use strict";var r=n(5689),o=n(2284),i=n(4440),a=n(9223),u=n(8577),l=n(5309);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),n=a(t.length),r=l(t,0);return r.length=o(r,t,t,n,0,void 0===e?1:u(e)),r}})},2064:(e,t,n)=>{"use strict";var r=n(5689),o=n(9352);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},7406:(e,t,n)=>{"use strict";var r=n(5689),o=n(5254).includes,i=n(990);r({target:"Array",proto:!0,forced:!n(778)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},3825:(e,t,n)=>{"use strict";var r=n(5689),o=n(5254).indexOf,i=n(8809),a=n(778),u=[].indexOf,l=!!u&&1/[1].indexOf(1,-0)<0,c=i("indexOf"),s=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:l||!c||!s},{indexOf:function(e){return l?u.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},8811:(e,t,n)=>{n(5689)({target:"Array",stat:!0},{isArray:n(3115)})},2493:(e,t,n)=>{"use strict";var r=n(3016),o=n(990),i=n(7240),a=n(3962),u=n(2527),l="Array Iterator",c=a.set,s=a.getterFor(l);e.exports=u(Array,"Array",(function(e,t){c(this,{type:l,target:r(e),index:0,kind:t})}),(function(){var e=s(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},1055:(e,t,n)=>{"use strict";var r=n(5689),o=n(8188),i=n(3016),a=n(8809),u=[].join,l=o!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:l||!c},{join:function(e){return u.call(i(this),void 0===e?",":e)}})},2417:(e,t,n)=>{"use strict";var r=n(5689),o=n(5860).map,i=n(6894),a=n(778),u=i("map"),l=a("map");r({target:"Array",proto:!0,forced:!u||!l},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},8790:(e,t,n)=>{"use strict";var r=n(5689),o=n(9857).left,i=n(8809),a=n(778),u=i("reduce"),l=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!u||!l},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},6889:(e,t,n)=>{"use strict";var r=n(5689),o=n(3115),i=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},3034:(e,t,n)=>{"use strict";var r=n(5689),o=n(6827),i=n(3115),a=n(847),u=n(9223),l=n(3016),c=n(1861),s=n(7166),f=n(6894),d=n(778),p=f("slice"),h=d("slice",{ACCESSORS:!0,0:0,1:2}),v=s("species"),m=[].slice,g=Math.max;r({target:"Array",proto:!0,forced:!p||!h},{slice:function(e,t){var n,r,s,f=l(this),d=u(f.length),p=a(e,d),h=a(void 0===t?d:t,d);if(i(f)&&("function"!=typeof(n=f.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[v])&&(n=void 0):n=void 0,n===Array||void 0===n))return m.call(f,p,h);for(r=new(void 0===n?Array:n)(g(h-p,0)),s=0;p{"use strict";var r=n(5689),o=n(6689),i=n(4440),a=n(8462),u=n(8809),l=[],c=l.sort,s=a((function(){l.sort(void 0)})),f=a((function(){l.sort(null)})),d=u("sort");r({target:"Array",proto:!0,forced:s||!f||!d},{sort:function(e){return void 0===e?c.call(i(this)):c.call(i(this),o(e))}})},4751:(e,t,n)=>{"use strict";var r=n(5689),o=n(847),i=n(8577),a=n(9223),u=n(4440),l=n(5309),c=n(1861),s=n(6894),f=n(778),d=s("splice"),p=f("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!d||!p},{splice:function(e,t){var n,r,s,f,d,p,m=u(this),g=a(m.length),y=o(e,g),b=arguments.length;if(0===b?n=r=0:1===b?(n=0,r=g-y):(n=b-2,r=v(h(i(t),0),g-y)),g+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(s=l(m,r),f=0;fg-r+n;f--)delete m[f-1]}else if(n>r)for(f=g-r;f>y;f--)p=f+n-1,(d=f+r-1)in m?m[p]=m[d]:delete m[p];for(f=0;f{n(990)("flat")},5351:(e,t,n)=>{var r=n(4100),o=n(9565),i=n(7166)("toPrimitive"),a=Date.prototype;i in a||r(a,i,o)},1081:(e,t,n)=>{var r=n(57),o=Date.prototype,i="Invalid Date",a="toString",u=o[a],l=o.getTime;new Date(NaN)+""!=i&&r(o,a,(function(){var e=l.call(this);return e==e?u.call(this):i}))},2825:(e,t,n)=>{n(5689)({target:"Function",proto:!0},{bind:n(8631)})},3145:(e,t,n)=>{var r=n(6953),o=n(7614).f,i=Function.prototype,a=i.toString,u=/^\s*function ([^ (]*)/,l="name";r&&!(l in i)&&o(i,l,{configurable:!0,get:function(){try{return a.call(this).match(u)[1]}catch(e){return""}}})},3190:(e,t,n)=>{n(5689)({global:!0},{globalThis:n(2756)})},4506:(e,t,n)=>{"use strict";var r=n(6939),o=n(8651);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},8589:(e,t,n)=>{"use strict";var r=n(6953),o=n(2756),i=n(5149),a=n(57),u=n(991),l=n(661),c=n(3042),s=n(7806),f=n(8462),d=n(3981),p=n(4161).f,h=n(172).f,v=n(7614).f,m=n(207).trim,g="Number",y=o[g],b=y.prototype,w=l(d(b))==g,k=function(e){var t,n,r,o,i,a,u,l,c=s(e,!1);if("string"==typeof c&&c.length>2)if(43===(t=(c=m(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=c.slice(2)).length,u=0;uo)return NaN;return parseInt(i,r)}return+c};if(i(g,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var x,E=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof E&&(w?f((function(){b.valueOf.call(n)})):l(n)!=g)?c(new y(k(t)),n,E):k(t)},S=r?p(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;S.length>O;O++)u(y,x=S[O])&&!u(E,x)&&v(E,x,h(y,x));E.prototype=b,b.constructor=E,a(o,g,E)}},9206:(e,t,n)=>{var r=n(5689),o=n(9484);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},7047:(e,t,n)=>{n(5689)({target:"Object",stat:!0,sham:!n(6953)},{create:n(3981)})},2395:(e,t,n)=>{var r=n(5689),o=n(9584).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},5130:(e,t,n)=>{var r=n(5689),o=n(6357),i=n(1861);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return o(e,(function(e,n){i(t,e,n)}),void 0,!0),t}})},1240:(e,t,n)=>{var r=n(5689),o=n(8462),i=n(4440),a=n(6166),u=n(6036);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!u},{getPrototypeOf:function(e){return a(i(e))}})},8471:(e,t,n)=>{var r=n(5689),o=n(4440),i=n(4565);r({target:"Object",stat:!0,forced:n(8462)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},4372:(e,t,n)=>{n(5689)({target:"Object",stat:!0},{setPrototypeOf:n(4322)})},570:(e,t,n)=>{var r=n(3557),o=n(57),i=n(4536);r||o(Object.prototype,"toString",i,{unsafe:!0})},3293:(e,t,n)=>{var r=n(5689),o=n(9584).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},8428:(e,t,n)=>{var r=n(5689),o=n(5503);r({global:!0,forced:parseFloat!=o},{parseFloat:o})},3931:(e,t,n)=>{var r=n(5689),o=n(4800);r({global:!0,forced:parseInt!=o},{parseInt:o})},3813:(e,t,n)=>{"use strict";var r,o,i,a,u=n(5689),l=n(7690),c=n(2756),s=n(5072),f=n(653),d=n(57),p=n(5783),h=n(5142),v=n(6080),m=n(6827),g=n(6689),y=n(26),b=n(661),w=n(1633),k=n(6357),x=n(5239),E=n(8576),S=n(3102).set,O=n(4050),T=n(9191),C=n(9974),P=n(8920),I=n(1542),j=n(3962),N=n(5149),R=n(7166),D=n(5649),_=R("species"),M="Promise",A=j.get,L=j.set,F=j.getterFor(M),B=f,z=c.TypeError,U=c.document,H=c.process,V=s("fetch"),W=P.f,$=W,K="process"==b(H),q=!!(U&&U.createEvent&&c.dispatchEvent),G="unhandledrejection",X=N(M,(function(){if(!(w(B)!==String(B))){if(66===D)return!0;if(!K&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!B.prototype.finally)return!0;if(D>=51&&/native code/.test(B))return!1;var e=B.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[_]=t,!(e.then((function(){}))instanceof t)})),Y=X||!x((function(e){B.all(e).catch((function(){}))})),Q=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},J=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;O((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var u,l,c,s=r[a++],f=i?s.ok:s.fail,d=s.resolve,p=s.reject,h=s.domain;try{f?(i||(2===t.rejection&&ne(e,t),t.rejection=1),!0===f?u=o:(h&&h.enter(),u=f(o),h&&(h.exit(),c=!0)),u===s.promise?p(z("Promise-chain cycle")):(l=Q(u))?l.call(u,d,p):d(u)):p(o)}catch(e){h&&!c&&h.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ee(e,t)}))}},Z=function(e,t,n){var r,o;q?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},(o=c["on"+e])?o(r):e===G&&C("Unhandled promise rejection",n)},ee=function(e,t){S.call(c,(function(){var n,r=t.value;if(te(t)&&(n=I((function(){K?H.emit("unhandledRejection",r,e):Z(G,e,r)})),t.rejection=K||te(t)?2:1,n.error))throw n.value}))},te=function(e){return 1!==e.rejection&&!e.parent},ne=function(e,t){S.call(c,(function(){K?H.emit("rejectionHandled",e):Z("rejectionhandled",e,t.value)}))},re=function(e,t,n,r){return function(o){e(t,n,o,r)}},oe=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,J(e,t,!0))},ie=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw z("Promise can't be resolved itself");var o=Q(n);o?O((function(){var r={done:!1};try{o.call(n,re(ie,e,r,t),re(oe,e,r,t))}catch(n){oe(e,r,n,t)}})):(t.value=n,t.state=1,J(e,t,!1))}catch(n){oe(e,{done:!1},n,t)}}};X&&(B=function(e){y(this,B,M),g(e),r.call(this);var t=A(this);try{e(re(ie,this,t),re(oe,this,t))}catch(e){oe(this,t,e)}},(r=function(e){L(this,{type:M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(B.prototype,{then:function(e,t){var n=F(this),r=W(E(this,B));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=K?H.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&J(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=A(e);this.promise=e,this.resolve=re(ie,e,t),this.reject=re(oe,e,t)},P.f=W=function(e){return e===B||e===i?new o(e):$(e)},l||"function"!=typeof f||(a=f.prototype.then,d(f.prototype,"then",(function(e,t){var n=this;return new B((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof V&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return T(B,V.apply(c,arguments))}}))),u({global:!0,wrap:!0,forced:X},{Promise:B}),h(B,M,!1,!0),v(M),i=s(M),u({target:M,stat:!0,forced:X},{reject:function(e){var t=W(this);return t.reject.call(void 0,e),t.promise}}),u({target:M,stat:!0,forced:l||X},{resolve:function(e){return T(l&&this===i?B:this,e)}}),u({target:M,stat:!0,forced:Y},{all:function(e){var t=this,n=W(t),r=n.resolve,o=n.reject,i=I((function(){var n=g(t.resolve),i=[],a=0,u=1;k(e,(function(e){var l=a++,c=!1;i.push(void 0),u++,n.call(t,e).then((function(e){c||(c=!0,i[l]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=W(t),r=n.reject,o=I((function(){var o=g(t.resolve);k(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},9834:(e,t,n)=>{var r=n(5689),o=n(5072),i=n(6689),a=n(1326),u=n(6827),l=n(3981),c=n(8631),s=n(8462),f=o("Reflect","construct"),d=s((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),p=!s((function(){f((function(){}))})),h=d||p;r({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(p&&!d)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var o=n.prototype,s=l(u(o)?o:Object.prototype),h=Function.apply.call(e,s,t);return u(h)?h:s}})},5624:(e,t,n)=>{var r=n(5689),o=n(1326),i=n(172).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},9208:(e,t,n)=>{n(5689)({target:"Reflect",stat:!0},{ownKeys:n(1804)})},7309:(e,t,n)=>{var r=n(6953),o=n(2756),i=n(5149),a=n(3042),u=n(7614).f,l=n(4161).f,c=n(5237),s=n(4768),f=n(4124),d=n(57),p=n(8462),h=n(3962).set,v=n(6080),m=n(7166)("match"),g=o.RegExp,y=g.prototype,b=/a/g,w=/a/g,k=new g(b)!==b,x=f.UNSUPPORTED_Y;if(r&&i("RegExp",!k||x||p((function(){return w[m]=!1,g(b)!=b||g(w)==w||"/a/i"!=g(b,"i")})))){for(var E=function(e,t){var n,r=this instanceof E,o=c(e),i=void 0===t;if(!r&&o&&e.constructor===E&&i)return e;k?o&&!i&&(e=e.source):e instanceof E&&(i&&(t=s.call(e)),e=e.source),x&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var u=a(k?new g(e,t):g(e,t),r?this:y,E);return x&&n&&h(u,{sticky:n}),u},S=function(e){e in E||u(E,e,{configurable:!0,get:function(){return g[e]},set:function(t){g[e]=t}})},O=l(g),T=0;O.length>T;)S(O[T++]);y.constructor=E,E.prototype=y,d(o,"RegExp",E)}v("RegExp")},3188:(e,t,n)=>{"use strict";var r=n(5689),o=n(5866);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},844:(e,t,n)=>{"use strict";var r=n(57),o=n(1326),i=n(8462),a=n(4768),u="toString",l=RegExp.prototype,c=l[u],s=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f=c.name!=u;(s||f)&&r(RegExp.prototype,u,(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in l)?a.call(e):n)}),{unsafe:!0})},2352:(e,t,n)=>{"use strict";var r=n(6939),o=n(8651);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},9696:(e,t,n)=>{"use strict";var r=n(5689),o=n(7179);r({target:"String",proto:!0,forced:n(7354)("anchor")},{anchor:function(e){return o(this,"a","name",e)}})},5448:(e,t,n)=>{"use strict";var r=n(5689),o=n(1960),i=n(5065);r({target:"String",proto:!0,forced:!n(3301)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},3343:(e,t,n)=>{"use strict";var r=n(520).charAt,o=n(3962),i=n(2527),a="String Iterator",u=o.set,l=o.getterFor(a);i(String,"String",(function(e){u(this,{type:a,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},6552:(e,t,n)=>{"use strict";var r=n(6031),o=n(1326),i=n(9223),a=n(5065),u=n(4958),l=n(5805);r("match",1,(function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=o(e),c=String(this);if(!a.global)return l(a,c);var s=a.unicode;a.lastIndex=0;for(var f,d=[],p=0;null!==(f=l(a,c));){var h=String(f[0]);d[p]=h,""===h&&(a.lastIndex=u(c,i(a.lastIndex),s)),p++}return 0===p?null:d}]}))},693:(e,t,n)=>{"use strict";var r=n(5689),o=n(5826).start;r({target:"String",proto:!0,forced:n(5722)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},9297:(e,t,n)=>{"use strict";var r=n(6031),o=n(1326),i=n(4440),a=n(9223),u=n(8577),l=n(5065),c=n(4958),s=n(5805),f=Math.max,d=Math.min,p=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var m=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=r.REPLACE_KEEPS_$0,y=m?"$":"$0";return[function(n,r){var o=l(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!m&&g||"string"==typeof r&&-1===r.indexOf(y)){var i=n(t,e,this,r);if(i.done)return i.value}var l=o(e),p=String(this),h="function"==typeof r;h||(r=String(r));var v=l.global;if(v){var w=l.unicode;l.lastIndex=0}for(var k=[];;){var x=s(l,p);if(null===x)break;if(k.push(x),!v)break;""===String(x[0])&&(l.lastIndex=c(p,a(l.lastIndex),w))}for(var E,S="",O=0,T=0;T=O&&(S+=p.slice(O,P)+D,O=P+C.length)}return S+p.slice(O)}];function b(e,n,r,o,a,u){var l=r+e.length,c=o.length,s=v;return void 0!==a&&(a=i(a),s=h),t.call(u,s,(function(t,i){var u;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":u=a[i.slice(1,-1)];break;default:var s=+i;if(0===s)return t;if(s>c){var f=p(s/10);return 0===f?t:f<=c?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):t}u=o[s-1]}return void 0===u?"":u}))}}))},2773:(e,t,n)=>{"use strict";var r=n(6031),o=n(5237),i=n(1326),a=n(5065),u=n(8576),l=n(4958),c=n(9223),s=n(5805),f=n(5866),d=n(8462),p=[].push,h=Math.min,v=4294967295,m=!d((function(){return!RegExp(v,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),i=void 0===n?v:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,i);for(var u,l,c,s=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,m=new RegExp(e.source,d+"g");(u=f.call(m,r))&&!((l=m.lastIndex)>h&&(s.push(r.slice(h,u.index)),u.length>1&&u.index=i));)m.lastIndex===u.index&&m.lastIndex++;return h===r.length?!c&&m.test("")||s.push(""):s.push(r.slice(h)),s.length>i?s.slice(0,i):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=a(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var a=n(r,e,this,o,r!==t);if(a.done)return a.value;var f=i(e),d=String(this),p=u(f,RegExp),g=f.unicode,y=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(m?"y":"g"),b=new p(m?f:"^(?:"+f.source+")",y),w=void 0===o?v:o>>>0;if(0===w)return[];if(0===d.length)return null===s(b,d)?[d]:[];for(var k=0,x=0,E=[];x{"use strict";var r,o=n(5689),i=n(172).f,a=n(9223),u=n(1960),l=n(5065),c=n(3301),s=n(7690),f="".startsWith,d=Math.min,p=c("startsWith");o({target:"String",proto:!0,forced:!!(s||p||(r=i(String.prototype,"startsWith"),!r||r.writable))&&!p},{startsWith:function(e){var t=String(l(this));u(e);var n=a(d(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return f?f.call(t,r,n):t.slice(n,n+r.length)===r}})},4290:(e,t,n)=>{"use strict";var r=n(5689),o=n(6953),i=n(2756),a=n(991),u=n(6827),l=n(7614).f,c=n(9621),s=i.Symbol;if(o&&"function"==typeof s&&(!("description"in s.prototype)||void 0!==s().description)){var f={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new s(e):void 0===e?s():s(e);return""===e&&(f[t]=!0),t};c(d,s);var p=d.prototype=s.prototype;p.constructor=d;var h=p.toString,v="Symbol(test)"==String(s("test")),m=/^Symbol\((.*)\)[^)]+$/;l(p,"description",{configurable:!0,get:function(){var e=u(this)?this.valueOf():this,t=h.call(e);if(a(f,e))return"";var n=v?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},4162:(e,t,n)=>{"use strict";var r=n(5689),o=n(2756),i=n(5072),a=n(7690),u=n(6953),l=n(3165),c=n(4717),s=n(8462),f=n(991),d=n(3115),p=n(6827),h=n(1326),v=n(4440),m=n(3016),g=n(7806),y=n(9367),b=n(3981),w=n(4565),k=n(4161),x=n(4113),E=n(864),S=n(172),O=n(7614),T=n(6492),C=n(4100),P=n(57),I=n(3662),j=n(5868),N=n(3472),R=n(637),D=n(7166),_=n(766),M=n(4300),A=n(5142),L=n(3962),F=n(5860).forEach,B=j("hidden"),z="Symbol",U="prototype",H=D("toPrimitive"),V=L.set,W=L.getterFor(z),$=Object[U],K=o.Symbol,q=i("JSON","stringify"),G=S.f,X=O.f,Y=x.f,Q=T.f,J=I("symbols"),Z=I("op-symbols"),ee=I("string-to-symbol-registry"),te=I("symbol-to-string-registry"),ne=I("wks"),re=o.QObject,oe=!re||!re[U]||!re[U].findChild,ie=u&&s((function(){return 7!=b(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=G($,t);r&&delete $[t],X(e,t,n),r&&e!==$&&X($,t,r)}:X,ae=function(e,t){var n=J[e]=b(K[U]);return V(n,{type:z,tag:e,description:t}),u||(n.description=t),n},ue=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof K},le=function(e,t,n){e===$&&le(Z,t,n),h(e);var r=g(t,!0);return h(n),f(J,r)?(n.enumerable?(f(e,B)&&e[B][r]&&(e[B][r]=!1),n=b(n,{enumerable:y(0,!1)})):(f(e,B)||X(e,B,y(1,{})),e[B][r]=!0),ie(e,r,n)):X(e,r,n)},ce=function(e,t){h(e);var n=m(t),r=w(n).concat(pe(n));return F(r,(function(t){u&&!se.call(n,t)||le(e,t,n[t])})),e},se=function(e){var t=g(e,!0),n=Q.call(this,t);return!(this===$&&f(J,t)&&!f(Z,t))&&(!(n||!f(this,t)||!f(J,t)||f(this,B)&&this[B][t])||n)},fe=function(e,t){var n=m(e),r=g(t,!0);if(n!==$||!f(J,r)||f(Z,r)){var o=G(n,r);return!o||!f(J,r)||f(n,B)&&n[B][r]||(o.enumerable=!0),o}},de=function(e){var t=Y(m(e)),n=[];return F(t,(function(e){f(J,e)||f(N,e)||n.push(e)})),n},pe=function(e){var t=e===$,n=Y(t?Z:m(e)),r=[];return F(n,(function(e){!f(J,e)||t&&!f($,e)||r.push(J[e])})),r};(l||(P((K=function(){if(this instanceof K)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=R(e),n=function(e){this===$&&n.call(Z,e),f(this,B)&&f(this[B],t)&&(this[B][t]=!1),ie(this,t,y(1,e))};return u&&oe&&ie($,t,{configurable:!0,set:n}),ae(t,e)})[U],"toString",(function(){return W(this).tag})),P(K,"withoutSetter",(function(e){return ae(R(e),e)})),T.f=se,O.f=le,S.f=fe,k.f=x.f=de,E.f=pe,_.f=function(e){return ae(D(e),e)},u&&(X(K[U],"description",{configurable:!0,get:function(){return W(this).description}}),a||P($,"propertyIsEnumerable",se,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:K}),F(w(ne),(function(e){M(e)})),r({target:z,stat:!0,forced:!l},{for:function(e){var t=String(e);if(f(ee,t))return ee[t];var n=K(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!ue(e))throw TypeError(e+" is not a symbol");if(f(te,e))return te[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!u},{create:function(e,t){return void 0===t?b(e):ce(b(e),t)},defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:de,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:s((function(){E.f(1)}))},{getOwnPropertySymbols:function(e){return E.f(v(e))}}),q)&&r({target:"JSON",stat:!0,forced:!l||s((function(){var e=K();return"[null]"!=q([e])||"{}"!=q({a:e})||"{}"!=q(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(p(t)||void 0!==e)&&!ue(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ue(t))return t}),o[1]=t,q.apply(null,o)}});K[U][H]||C(K[U],H,K[U].valueOf),A(K,z),N[B]=!0},2111:(e,t,n)=>{n(4300)("toPrimitive")},4007:(e,t,n)=>{n(3190)},8808:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(9637);r({target:"Map",proto:!0,real:!0,forced:o},{deleteAll:function(){return i.apply(this,arguments)}})},7250:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(8273),u=n(4159),l=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{every:function(e){var t=i(this),n=u(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return!l(n,(function(e,n){if(!r(n,e,t))return l.stop()}),void 0,!0,!0).stopped}})},4395:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8273),c=n(8576),s=n(4159),f=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{filter:function(e){var t=a(this),n=s(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),o=new(c(t,i("Map"))),d=u(o.set);return f(n,(function(e,n){r(n,e,t)&&d.call(o,e,n)}),void 0,!0,!0),o}})},1476:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(8273),u=n(4159),l=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{findKey:function(e){var t=i(this),n=u(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n){if(r(n,e,t))return l.stop(e)}),void 0,!0,!0).result}})},6934:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(8273),u=n(4159),l=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{find:function(e){var t=i(this),n=u(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n){if(r(n,e,t))return l.stop(n)}),void 0,!0,!0).result}})},3560:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(4159),u=n(5892),l=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{includes:function(e){return l(a(i(this)),(function(t,n){if(u(n,e))return l.stop()}),void 0,!0,!0).stopped}})},9414:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(4159),u=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{keyOf:function(e){return u(a(i(this)),(function(t,n){if(n===e)return u.stop(t)}),void 0,!0,!0).result}})},5152:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8273),c=n(8576),s=n(4159),f=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{mapKeys:function(e){var t=a(this),n=s(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),o=new(c(t,i("Map"))),d=u(o.set);return f(n,(function(e,n){d.call(o,r(n,e,t),n)}),void 0,!0,!0),o}})},2314:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8273),c=n(8576),s=n(4159),f=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{mapValues:function(e){var t=a(this),n=s(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),o=new(c(t,i("Map"))),d=u(o.set);return f(n,(function(e,n){d.call(o,e,r(n,e,t))}),void 0,!0,!0),o}})},8525:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(6689),u=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{merge:function(e){for(var t=i(this),n=a(t.set),r=0;r{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(6689),u=n(4159),l=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{reduce:function(e){var t=i(this),n=u(t),r=arguments.length<2,o=r?void 0:arguments[1];if(a(e),l(n,(function(n,i){r?(r=!1,o=i):o=e(o,i,n,t)}),void 0,!0,!0),r)throw TypeError("Reduce of empty map with no initial value");return o}})},9709:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(8273),u=n(4159),l=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{some:function(e){var t=i(this),n=u(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n){if(r(n,e,t))return l.stop()}),void 0,!0,!0).stopped}})},3992:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(6689);r({target:"Map",proto:!0,real:!0,forced:o},{update:function(e,t){var n=i(this),r=arguments.length;a(t);var o=n.has(e);if(!o&&r<3)throw TypeError("Updating absent value");var u=o?n.get(e):a(r>2?arguments[2]:void 0)(e,n);return n.set(e,t(u,e,n)),n}})},578:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(431);r({target:"Set",proto:!0,real:!0,forced:o},{addAll:function(){return i.apply(this,arguments)}})},50:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(9637);r({target:"Set",proto:!0,real:!0,forced:o},{deleteAll:function(){return i.apply(this,arguments)}})},2344:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8576),c=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{difference:function(e){var t=a(this),n=new(l(t,i("Set")))(t),r=u(n.delete);return c(e,(function(e){r.call(n,e)})),n}})},9616:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(8273),u=n(8641),l=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{every:function(e){var t=i(this),n=u(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return!l(n,(function(e){if(!r(e,e,t))return l.stop()}),void 0,!1,!0).stopped}})},6125:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8273),c=n(8576),s=n(8641),f=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{filter:function(e){var t=a(this),n=s(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),o=new(c(t,i("Set"))),d=u(o.add);return f(n,(function(e){r(e,e,t)&&d.call(o,e)}),void 0,!1,!0),o}})},3536:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(8273),u=n(8641),l=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{find:function(e){var t=i(this),n=u(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e){if(r(e,e,t))return l.stop(e)}),void 0,!1,!0).result}})},2886:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8576),c=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{intersection:function(e){var t=a(this),n=new(l(t,i("Set"))),r=u(t.has),o=u(n.add);return c(e,(function(e){r.call(t,e)&&o.call(n,e)})),n}})},3081:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(6689),u=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{isDisjointFrom:function(e){var t=i(this),n=a(t.has);return!u(e,(function(e){if(!0===n.call(t,e))return u.stop()})).stopped}})},278:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(898),c=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{isSubsetOf:function(e){var t=l(this),n=a(e),r=n.has;return"function"!=typeof r&&(n=new(i("Set"))(e),r=u(n.has)),!c(t,(function(e){if(!1===r.call(n,e))return c.stop()}),void 0,!1,!0).stopped}})},7383:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(6689),u=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{isSupersetOf:function(e){var t=i(this),n=a(t.has);return!u(e,(function(e){if(!1===n.call(t,e))return u.stop()})).stopped}})},231:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(8641),u=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{join:function(e){var t=i(this),n=a(t),r=void 0===e?",":String(e),o=[];return u(n,o.push,o,!1,!0),o.join(r)}})},6409:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8273),c=n(8576),s=n(8641),f=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{map:function(e){var t=a(this),n=s(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),o=new(c(t,i("Set"))),d=u(o.add);return f(n,(function(e){d.call(o,r(e,e,t))}),void 0,!1,!0),o}})},8113:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(6689),u=n(8641),l=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{reduce:function(e){var t=i(this),n=u(t),r=arguments.length<2,o=r?void 0:arguments[1];if(a(e),l(n,(function(n){r?(r=!1,o=n):o=e(o,n,n,t)}),void 0,!1,!0),r)throw TypeError("Reduce of empty set with no initial value");return o}})},4695:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(8273),u=n(8641),l=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{some:function(e){var t=i(this),n=u(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e){if(r(e,e,t))return l.stop()}),void 0,!1,!0).stopped}})},378:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8576),c=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{symmetricDifference:function(e){var t=a(this),n=new(l(t,i("Set")))(t),r=u(n.delete),o=u(n.add);return c(e,(function(e){r.call(n,e)||o.call(n,e)})),n}})},2548:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8576),c=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{union:function(e){var t=a(this),n=new(l(t,i("Set")))(t);return c(e,u(n.add),n),n}})},3449:(e,t,n)=>{"use strict";var r=n(5689),o=n(520).charAt;r({target:"String",proto:!0},{at:function(e){return o(this,e)}})},4439:(e,t,n)=>{var r=n(2756),o=n(8993),i=n(9352),a=n(4100);for(var u in o){var l=r[u],c=l&&l.prototype;if(c&&c.forEach!==i)try{a(c,"forEach",i)}catch(e){c.forEach=i}}},7046:(e,t,n)=>{var r=n(2756),o=n(8993),i=n(2493),a=n(4100),u=n(7166),l=u("iterator"),c=u("toStringTag"),s=i.values;for(var f in o){var d=r[f],p=d&&d.prototype;if(p){if(p[l]!==s)try{a(p,l,s)}catch(e){p[l]=s}if(p[c]||a(p,c,f),o[f])for(var h in i)if(p[h]!==i[h])try{a(p,h,i[h])}catch(e){p[h]=i[h]}}}},1912:(e,t,n)=>{var r=n(5689),o=n(2756),i=n(5441),a=[].slice,u=function(e){return function(t,n){var r=arguments.length>2,o=r?a.call(arguments,2):void 0;return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:u(o.setTimeout),setInterval:u(o.setInterval)})},6169:(e,t,n)=>{"use strict";n(2493);var r=n(5689),o=n(5072),i=n(5336),a=n(57),u=n(5783),l=n(5142),c=n(3087),s=n(3962),f=n(26),d=n(991),p=n(8273),h=n(9794),v=n(1326),m=n(6827),g=n(3981),y=n(9367),b=n(898),w=n(3054),k=n(7166),x=o("fetch"),E=o("Headers"),S=k("iterator"),O="URLSearchParams",T=O+"Iterator",C=s.set,P=s.getterFor(O),I=s.getterFor(T),j=/\+/g,N=Array(4),R=function(e){return N[e-1]||(N[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},D=function(e){try{return decodeURIComponent(e)}catch(t){return e}},_=function(e){var t=e.replace(j," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(R(n--),D);return t}},M=/[!'()~]|%20/g,A={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},L=function(e){return A[e]},F=function(e){return encodeURIComponent(e).replace(M,L)},B=function(e,t){if(t)for(var n,r,o=t.split("&"),i=0;i0?arguments[0]:void 0,s=[];if(C(this,{type:O,entries:s,updateURL:function(){},updateSearchParams:z}),void 0!==c)if(m(c))if("function"==typeof(e=w(c)))for(n=(t=e.call(c)).next;!(r=n.call(t)).done;){if((a=(i=(o=b(v(r.value))).next).call(o)).done||(u=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");s.push({key:a.value+"",value:u.value+""})}else for(l in c)d(c,l)&&s.push({key:l,value:c[l]+""});else B(s,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},W=V.prototype;u(W,{append:function(e,t){U(arguments.length,2);var n=P(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){U(arguments.length,1);for(var t=P(this),n=t.entries,r=e+"",o=0;oe.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){for(var t,n=P(this).entries,r=p(e,arguments.length>1?arguments[1]:void 0,3),o=0;o1&&(m(t=arguments[1])&&(n=t.body,h(n)===O&&((r=t.headers?new E(t.headers):new E).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=g(t,{body:y(0,String(n)),headers:y(0,r)}))),o.push(t)),x.apply(this,o)}}),e.exports={URLSearchParams:V,getState:P}},473:(e,t,n)=>{"use strict";n(3343);var r,o=n(5689),i=n(6953),a=n(5336),u=n(2756),l=n(6434),c=n(57),s=n(26),f=n(991),d=n(9484),p=n(1871),h=n(520).codeAt,v=n(5298),m=n(5142),g=n(6169),y=n(3962),b=u.URL,w=g.URLSearchParams,k=g.getState,x=y.set,E=y.getterFor("URL"),S=Math.floor,O=Math.pow,T="Invalid scheme",C="Invalid host",P="Invalid port",I=/[A-Za-z]/,j=/[\d+-.A-Za-z]/,N=/\d/,R=/^(0x|0X)/,D=/^[0-7]+$/,_=/^\d+$/,M=/^[\dA-Fa-f]+$/,A=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,L=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,F=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,B=/[\u0009\u000A\u000D]/g,z=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return C;if(!(n=H(t.slice(1,-1))))return C;e.host=n}else if(Y(e)){if(t=v(t),A.test(t))return C;if(null===(n=U(t)))return C;e.host=n}else{if(L.test(t))return C;for(n="",r=p(t),o=0;o4)return e;for(n=[],r=0;r1&&"0"==o.charAt(0)&&(i=R.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?_:8==i?D:M).test(o))return e;a=parseInt(o,i)}n.push(a)}for(r=0;r=O(256,5-t))return null}else if(a>255)return null;for(u=n.pop(),r=0;r6)return;for(r=0;d();){if(o=null,r>0){if(!("."==d()&&r<4))return;f++}if(!N.test(d()))return;for(;N.test(d());){if(i=parseInt(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}l[c]=256*l[c]+o,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;l[c++]=t}else{if(null!==s)return;f++,s=++c}}if(null!==s)for(a=c-s,c=7;0!=c&&a>0;)u=l[c],l[c--]=l[s+a-1],l[s+--a]=u;else if(8!=c)return;return l},V=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=S(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},W={},$=d({},W,{" ":1,'"':1,"<":1,">":1,"`":1}),K=d({},$,{"#":1,"?":1,"{":1,"}":1}),q=d({},K,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),G=function(e,t){var n=h(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},X={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Y=function(e){return f(X,e.scheme)},Q=function(e){return""!=e.username||""!=e.password},J=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Z=function(e,t){var n;return 2==e.length&&I.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ee=function(e){var t;return e.length>1&&Z(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},te=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&Z(t[0],!0)||t.pop()},ne=function(e){return"."===e||"%2e"===e.toLowerCase()},re={},oe={},ie={},ae={},ue={},le={},ce={},se={},fe={},de={},pe={},he={},ve={},me={},ge={},ye={},be={},we={},ke={},xe={},Ee={},Se=function(e,t,n,o){var i,a,u,l,c,s=n||re,d=0,h="",v=!1,m=!1,g=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(F,"")),t=t.replace(B,""),i=p(t);d<=i.length;){switch(a=i[d],s){case re:if(!a||!I.test(a)){if(n)return T;s=ie;continue}h+=a.toLowerCase(),s=oe;break;case oe:if(a&&(j.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(n)return T;h="",s=ie,d=0;continue}if(n&&(Y(e)!=f(X,h)||"file"==h&&(Q(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(Y(e)&&X[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?s=me:Y(e)&&o&&o.scheme==e.scheme?s=ae:Y(e)?s=se:"/"==i[d+1]?(s=ue,d++):(e.cannotBeABaseURL=!0,e.path.push(""),s=ke)}break;case ie:if(!o||o.cannotBeABaseURL&&"#"!=a)return T;if(o.cannotBeABaseURL&&"#"==a){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,s=Ee;break}s="file"==o.scheme?me:le;continue;case ae:if("/"!=a||"/"!=i[d+1]){s=le;continue}s=fe,d++;break;case ue:if("/"==a){s=de;break}s=we;continue;case le:if(e.scheme=o.scheme,a==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==a||"\\"==a&&Y(e))s=ce;else if("?"==a)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",s=xe;else{if("#"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),s=we;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",s=Ee}break;case ce:if(!Y(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,s=we;continue}s=de}else s=fe;break;case se:if(s=fe,"/"!=a||"/"!=h.charAt(d+1))continue;d++;break;case fe:if("/"!=a&&"\\"!=a){s=de;continue}break;case de:if("@"==a){v&&(h="%40"+h),v=!0,u=p(h);for(var y=0;y65535)return P;e.port=Y(e)&&k===X[e.scheme]?null:k,h=""}if(n)return;s=be;continue}return P}h+=a;break;case me:if(e.scheme="file","/"==a||"\\"==a)s=ge;else{if(!o||"file"!=o.scheme){s=we;continue}if(a==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==a)e.host=o.host,e.path=o.path.slice(),e.query="",s=xe;else{if("#"!=a){ee(i.slice(d).join(""))||(e.host=o.host,e.path=o.path.slice(),te(e)),s=we;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",s=Ee}}break;case ge:if("/"==a||"\\"==a){s=ye;break}o&&"file"==o.scheme&&!ee(i.slice(d).join(""))&&(Z(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),s=we;continue;case ye:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&Z(h))s=we;else if(""==h){if(e.host="",n)return;s=be}else{if(l=z(e,h))return l;if("localhost"==e.host&&(e.host=""),n)return;h="",s=be}continue}h+=a;break;case be:if(Y(e)){if(s=we,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(s=we,"/"!=a))continue}else e.fragment="",s=Ee;else e.query="",s=xe;break;case we:if(a==r||"/"==a||"\\"==a&&Y(e)||!n&&("?"==a||"#"==a)){if(".."===(c=(c=h).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(te(e),"/"==a||"\\"==a&&Y(e)||e.path.push("")):ne(h)?"/"==a||"\\"==a&&Y(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Z(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",s=xe):"#"==a&&(e.fragment="",s=Ee)}else h+=G(a,K);break;case ke:"?"==a?(e.query="",s=xe):"#"==a?(e.fragment="",s=Ee):a!=r&&(e.path[0]+=G(a,W));break;case xe:n||"#"!=a?a!=r&&("'"==a&&Y(e)?e.query+="%27":e.query+="#"==a?"%23":G(a,W)):(e.fragment="",s=Ee);break;case Ee:a!=r&&(e.fragment+=G(a,$))}d++}},Oe=function(e){var t,n,r=s(this,Oe,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(e),u=x(r,{type:"URL"});if(void 0!==o)if(o instanceof Oe)t=E(o);else if(n=Se(t={},String(o)))throw TypeError(n);if(n=Se(u,a,null,t))throw TypeError(n);var l=u.searchParams=new w,c=k(l);c.updateSearchParams(u.query),c.updateURL=function(){u.query=String(l)||null},i||(r.href=Ce.call(r),r.origin=Pe.call(r),r.protocol=Ie.call(r),r.username=je.call(r),r.password=Ne.call(r),r.host=Re.call(r),r.hostname=De.call(r),r.port=_e.call(r),r.pathname=Me.call(r),r.search=Ae.call(r),r.searchParams=Le.call(r),r.hash=Fe.call(r))},Te=Oe.prototype,Ce=function(){var e=E(this),t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,u=e.query,l=e.fragment,c=t+":";return null!==o?(c+="//",Q(e)&&(c+=n+(r?":"+r:"")+"@"),c+=V(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==u&&(c+="?"+u),null!==l&&(c+="#"+l),c},Pe=function(){var e=E(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&Y(e)?t+"://"+V(e.host)+(null!==n?":"+n:""):"null"},Ie=function(){return E(this).scheme+":"},je=function(){return E(this).username},Ne=function(){return E(this).password},Re=function(){var e=E(this),t=e.host,n=e.port;return null===t?"":null===n?V(t):V(t)+":"+n},De=function(){var e=E(this).host;return null===e?"":V(e)},_e=function(){var e=E(this).port;return null===e?"":String(e)},Me=function(){var e=E(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ae=function(){var e=E(this).query;return e?"?"+e:""},Le=function(){return E(this).searchParams},Fe=function(){var e=E(this).fragment;return e?"#"+e:""},Be=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&l(Te,{href:Be(Ce,(function(e){var t=E(this),n=String(e),r=Se(t,n);if(r)throw TypeError(r);k(t.searchParams).updateSearchParams(t.query)})),origin:Be(Pe),protocol:Be(Ie,(function(e){var t=E(this);Se(t,String(e)+":",re)})),username:Be(je,(function(e){var t=E(this),n=p(String(e));if(!J(t)){t.username="";for(var r=0;r{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var u=new o(r,i||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],u]:e._events[l].push(u):(e._events[l]=u,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function u(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),u.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},u.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},1664:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,u=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l-1&&r<=c)for(;++n3?"WebKit":/\bOpera\b/.test(B)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(F)&&"WebKit"||!F&&/\bMSIE\b/i.test(t)&&("Mac OS"==H?"Tasman":"Trident")||"WebKit"==F&&/\bPlayStation\b(?! Vita\b)/i.test(B)&&"NetFront")&&(F=[u]),"IE"==B&&(u=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(B+=" Mobile",H="Windows Phone "+(/\+$/.test(u)?u:u+".x"),_.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(B="IE Mobile",H="Windows Phone 8.x",_.unshift("desktop mode"),L||(L=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=B&&"Trident"==F&&(u=/\brv:([\d.]+)/.exec(t))&&(B&&_.push("identifying as "+B+(L?" "+L:"")),B="IE",L=u[1]),A){if(f="global",d=null!=(c=n)?typeof c[f]:"number",/^(?:boolean|number|string|undefined)$/.test(d)||"object"==d&&!c[f])g(u=n.runtime)==x?(B="Adobe AIR",H=u.flash.system.Capabilities.os):g(u=n.phantom)==O?(B="PhantomJS",L=(u=u.version||null)&&u.major+"."+u.minor+"."+u.patch):"number"==typeof j.documentMode&&(u=/\bTrident\/(\d+)/i.exec(t))?(L=[L,j.documentMode],(u=+u[1]+4)!=L[1]&&(_.push("IE "+L[1]+" mode"),F&&(F[1]=""),L[1]=u),L="IE"==B?String(L[1].toFixed(1)):L[0]):"number"==typeof j.documentMode&&/^(?:Chrome|Firefox)\b/.test(B)&&(_.push("masking as "+B+" "+L),B="IE",L="11.0",F=["Trident"],H="Windows");else if(T&&(D=(u=T.lang.System).getProperty("os.arch"),H=H||u.getProperty("os.name")+" "+u.getProperty("os.version")),C){try{L=n.require("ringo/engine").version.join("."),B="RingoJS"}catch(e){(u=n.system)&&u.global.system==n.system&&(B="Narwhal",H||(H=u[0].os||null))}B||(B="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(u=n.process)&&("object"==typeof u.versions&&("string"==typeof u.versions.electron?(_.push("Node "+u.versions.node),B="Electron",L=u.versions.electron):"string"==typeof u.versions.nw&&(_.push("Chromium "+L,"Node "+u.versions.node),B="NW.js",L=u.versions.nw)),B||(B="Node.js",D=u.arch,H=u.platform,L=(L=/[\d.]+/.exec(u.version))?L[0]:null));H=H&&v(H)}if(L&&(u=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(L)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(A&&o.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(M=/b/i.test(u)?"beta":"alpha",L=L.replace(RegExp(u+"\\+?$"),"")+("beta"==M?I:P)+(/\d+\+?/.exec(u)||"")),"Fennec"==B||"Firefox"==B&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(H))B="Firefox Mobile";else if("Maxthon"==B&&L)L=L.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(z))"Xbox 360"==z&&(H=null),"Xbox 360"==z&&/\bIEMobile\b/.test(t)&&_.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(B)&&(!B||z||/Browser|Mobi/.test(B))||"Windows CE"!=H&&!/Mobi/i.test(t))if("IE"==B&&A)try{null===n.external&&_.unshift("platform preview")}catch(e){_.unshift("embedded")}else(/\bBlackBerry\b/.test(z)||/\bBB10\b/.test(t))&&(u=(RegExp(z.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||L)?(H=((u=[u,/BB10/.test(t)])[1]?(z=null,U="BlackBerry"):"Device Software")+" "+u[0],L=null):this!=m&&"Wii"!=z&&(A&&N||/Opera/.test(B)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==B&&/\bOS X (?:\d+\.){2,}/.test(H)||"IE"==B&&(H&&!/^Win/.test(H)&&L>5.5||/\bWindows XP\b/.test(H)&&L>8||8==L&&!/\bTrident\b/.test(t)))&&!s.test(u=e.call(m,t.replace(s,"")+";"))&&u.name&&(u="ing as "+u.name+((u=u.version)?" "+u:""),s.test(B)?(/\bIE\b/.test(u)&&"Mac OS"==H&&(H=null),u="identify"+u):(u="mask"+u,B=R?v(R.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(u)&&(H=null),A||(L=null)),F=["Presto"],_.push(u));else B+=" Mobile";(u=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(u=[parseFloat(u.replace(/\.(\d)$/,".0$1")),u],"Safari"==B&&"+"==u[1].slice(-1)?(B="WebKit Nightly",M="alpha",L=u[1].slice(0,-1)):L!=u[1]&&L!=(u[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(L=null),u[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(t)||0)[1],537.36==u[0]&&537.36==u[2]&&parseFloat(u[1])>=28&&"WebKit"==F&&(F=["Blink"]),A&&(h||u[1])?(F&&(F[1]="like Chrome"),u=u[1]||((u=u[0])<530?1:u<532?2:u<532.05?3:u<533?4:u<534.03?5:u<534.07?6:u<534.1?7:u<534.13?8:u<534.16?9:u<534.24?10:u<534.3?11:u<535.01?12:u<535.02?"13+":u<535.07?15:u<535.11?16:u<535.19?17:u<536.05?18:u<536.1?19:u<537.01?20:u<537.11?"21+":u<537.13?23:u<537.18?24:u<537.24?25:u<537.36?26:"Blink"!=F?"27":"28")):(F&&(F[1]="like Safari"),u=(u=u[0])<400?1:u<500?2:u<526?3:u<533?4:u<534?"4+":u<535?5:u<537?6:u<538?7:u<601?8:u<602?9:u<604?10:u<606?11:u<608?12:"12"),F&&(F[1]+=" "+(u+="number"==typeof u?".x":/[.+]/.test(u)?"":"+")),"Safari"==B&&(!L||parseInt(L)>45)?L=u:"Chrome"==B&&/\bHeadlessChrome/i.test(t)&&_.unshift("headless")),"Opera"==B&&(u=/\bzbov|zvav$/.exec(H))?(B+=" ",_.unshift("desktop mode"),"zvav"==u?(B+="Mini",L=null):B+="Mobile",H=H.replace(RegExp(" *"+u+"$"),"")):"Safari"==B&&/\bChrome\b/.exec(F&&F[1])?(_.unshift("desktop mode"),B="Chrome Mobile",L=null,/\bOS X\b/.test(H)?(U="Apple",H="iOS 4.3+"):H=null):/\bSRWare Iron\b/.test(B)&&!L&&(L=W("Chrome")),L&&0==L.indexOf(u=/[\d.]+$/.exec(H))&&t.indexOf("/"+u+"-")>-1&&(H=w(H.replace(u,""))),H&&-1!=H.indexOf(B)&&!RegExp(B+" OS").test(H)&&(H=H.replace(RegExp(" *"+y(B)+" *"),"")),F&&!/\b(?:Avant|Nook)\b/.test(B)&&(/Browser|Lunascape|Maxthon/.test(B)||"Safari"!=B&&/^iOS/.test(H)&&/\bSafari\b/.test(F[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(B)&&F[1])&&(u=F[F.length-1])&&_.push(u),_.length&&(_=["("+_.join("; ")+")"]),U&&z&&z.indexOf(U)<0&&_.push("on "+U),z&&_.push((/^on /.test(_[_.length-1])?"":"on ")+z),H&&(u=/ ([\d.+]+)$/.exec(H),l=u&&"/"==H.charAt(H.length-u[0].length-1),H={architecture:32,family:u&&!l?H.replace(u[0],""):H,version:u?u[1]:null,toString:function(){var e=this.version;return this.family+(e&&!l?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(u=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(D))&&!/\bi686\b/i.test(D)?(H&&(H.architecture=64,H.family=H.family.replace(RegExp(" *"+u),"")),B&&(/\bWOW64\b/i.test(t)||A&&/\w(?:86|32)$/.test(o.cpuClass||o.platform)&&!/\bWin64; x64\b/i.test(t))&&_.unshift("32-bit")):H&&/^OS X/.test(H.family)&&"Chrome"==B&&parseFloat(L)>=39&&(H.architecture=64),t||(t=null);var $={};return $.description=t,$.layout=F&&F[0],$.manufacturer=U,$.name=B,$.prerelease=M,$.product=z,$.ua=t,$.version=B&&L,$.os=H||{architecture:null,family:null,version:null,toString:function(){return"null"}},$.parse=e,$.toString=function(){return this.description||""},$.version&&_.unshift(L),$.name&&_.unshift(B),H&&B&&(H!=String(H).split(" ")[0]||H!=B.split(" ")[0]&&!z)&&_.push(z?"("+H+")":"on "+H),_.length&&($.description=_.join(" ")),$}();i.platform=k,void 0===(r=function(){return k}.call(t,n,t,e))||(e.exports=r)}.call(this)},362:(e,t,n)=>{"use strict";var r=n(6441);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2688:(e,t,n)=>{e.exports=n(362)()},6441:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4931:(e,t,n)=>{"use strict";var r=n(1664),o=n(3696);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nC;C++)T[C]=C+1;T[15]=0;var P=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,I=Object.prototype.hasOwnProperty,j={},N={};function R(e){return!!I.call(N,e)||!I.call(j,e)&&(P.test(e)?N[e]=!0:(j[e]=!0,!1))}function D(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){_[e]=new D(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];_[t]=new D(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){_[e]=new D(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){_[e]=new D(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){_[e]=new D(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){_[e]=new D(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){_[e]=new D(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){_[e]=new D(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){_[e]=new D(e,5,!1,e.toLowerCase(),null,!1)}));var M=/[\-:]([a-z])/g;function A(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(M,A);_[t]=new D(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(M,A);_[t]=new D(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(M,A);_[t]=new D(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){_[e]=new D(e,1,!1,e.toLowerCase(),null,!1)})),_.xlinkHref=new D("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){_[e]=new D(e,1,!1,e.toLowerCase(),null,!0)}));var L=/["'&<>]/;function F(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=L.exec(e);if(t){var n,r="",o=0;for(n=t.index;nt}return!1}(e,t,r,!1)?"":null!==r?(e=r.attributeName,3===(n=r.type)||4===n&&!0===t?e+'=""':(r.sanitizeURL&&(t=""+t),e+'="'+F(t)+'"')):R(e)?e+'="'+F(t)+'"':""}var z="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},U=null,H=null,V=null,W=!1,$=!1,K=null,q=0;function G(){if(null===U)throw Error(i(321));return U}function X(){if(0q))throw Error(i(301));if(e===U)if($=!0,e={action:n,next:null},null===K&&(K=new Map),void 0===(n=K.get(t)))K.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function te(){}var ne=0,re={readContext:function(e){var t=ne;return O(e,t),e[t]},useContext:function(e){G();var t=ne;return O(e,t),e[t]},useMemo:function(e,t){if(U=G(),t=void 0===t?null:t,null!==(V=Y())){var n=V.memoizedState;if(null!==n&&null!==t){e:{var r=n[1];if(null===r)r=!1;else{for(var o=0;o=a))throw Error(i(304));var u=new Uint16Array(a);for(u.set(r),(T=u)[0]=n+1,r=n;r=u.children.length){var l=u.footer;if(""!==l&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===u.type)this.currentSelectValue=null;else if(null!=u.type&&null!=u.type.type&&u.type.type.$$typeof===f)this.popProvider(u.type);else if(u.type===v){this.suspenseDepth--;var c=r.pop();if(o){o=!1;var s=u.fallbackFrame;if(!s)throw Error(i(303));this.stack.push(s),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=c}r[this.suspenseDepth]+=l}else{var d=u.children[u.childIndex++],p="";try{p+=this.render(d,u.context,u.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw Error(i(294));throw e}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=p}}return r[0]}finally{pe.current=n,ne=t}},t.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?F(n):this.previousWasTextNode?"\x3c!-- --\x3e"+F(n):(this.previousWasTextNode=!0,F(n));if(e=(t=ke(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!o.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===u)throw Error(i(257));throw Error(i(258,n.toString()))}return e=de(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var a=e.type;if("string"==typeof a)return this.renderDOM(e,t,n);switch(a){case c:case p:case s:case m:case l:return e=de(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case v:throw Error(i(294))}if("object"==typeof a&&null!==a)switch(a.$$typeof){case h:U={};var b=a.render(e.props,e.ref);return b=Q(a.render,e.props,b,e.ref),b=de(b),this.stack.push({type:null,domNamespace:n,children:b,childIndex:0,context:t,footer:""}),"";case g:return e=[o.createElement(a.type,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case f:return n={type:e,domNamespace:n,children:a=de(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case d:a=e.type,b=e.props;var x=this.threadID;return O(a,x),a=de(b.children(a[x])),this.stack.push({type:e,domNamespace:n,children:a,childIndex:0,context:t,footer:""}),"";case w:throw Error(i(338));case y:switch(function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(a=e.type),a._status){case 1:return e=[o.createElement(a._result,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw a._result;default:throw Error(i(295))}case k:throw Error(i(343))}throw Error(i(130,null==a?a:typeof a,""))},t.renderDOM=function(e,t,n){var a=e.type.toLowerCase();if(n===oe&&ie(a),!me.hasOwnProperty(a)){if(!ve.test(a))throw Error(i(65,a));me[a]=!0}var u=e.props;if("input"===a)u=r({type:void 0},u,{defaultChecked:void 0,defaultValue:void 0,value:null!=u.value?u.value:u.defaultValue,checked:null!=u.checked?u.checked:u.defaultChecked});else if("textarea"===a){var l=u.value;if(null==l){l=u.defaultValue;var c=u.children;if(null!=c){if(null!=l)throw Error(i(92));if(Array.isArray(c)){if(!(1>=c.length))throw Error(i(93));c=c[0]}l=""+c}null==l&&(l="")}u=r({},u,{value:void 0,children:""+l})}else if("select"===a)this.currentSelectValue=null!=u.value?u.value:u.defaultValue,u=r({},u,{value:void 0});else if("option"===a){c=this.currentSelectValue;var s=function(e){if(null==e)return e;var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(u.children);if(null!=c){var f=null!=u.value?u.value+"":s;if(l=!1,Array.isArray(c)){for(var d=0;d":(w+=">",l="");e:{if(null!=(c=u.dangerouslySetInnerHTML)){if(null!=c.__html){c=c.__html;break e}}else if("string"==typeof(c=u.children)||"number"==typeof c){c=F(c);break e}c=null}return null!=c?(u=[],he.hasOwnProperty(a)&&"\n"===c.charAt(0)&&(w+="\n"),w+=c):u=de(u.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?ie(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:u,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,w},e}(),Ee={renderToString:function(e){e=new xe(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new xe(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(i(207))},renderToStaticNodeStream:function(){throw Error(i(208))},version:"16.14.0"};e.exports=Ee.default||Ee},6067:(e,t,n)=>{"use strict";var r=n(3696),o=n(1664),i=n(1434);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n
, or turn it into a ")+"drag source or a drop target itself.")}}(o);var i=n?function(t){return e(t,n)}:e;return function(e,t){var n=e.ref;return Hi("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,se.cloneElement)(e,{ref:function(e){la(n,e),la(t,e)}}):(0,se.cloneElement)(e,{ref:t})}(o,i)}}function ua(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=aa(r);t[n]=function(){return o}}})),t}function la(e,t){"function"==typeof e?e(t):e.current=t}function ca(e){return ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ca(e)}function sa(e){return null!==e&&"object"===ca(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function fa(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter((function(e){return e!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}],n&&Va(t.prototype,n),r&&Va(t,r),e}(),Ka=Ha((function(){return/firefox/i.test(navigator.userAgent)})),qa=Ha((function(){return Boolean(window.safari)}));function Ga(e,t){for(var n=0;ne))return n[u];c=u-1}}var f=e-t[a=Math.max(0,c)],d=f*f;return n[a]+r[a]*f+o[a]*d+i[a]*f*d}}],n&&Ga(t.prototype,n),r&&Ga(t,r),e}();function Qa(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function Ja(e){return{x:e.clientX,y:e.clientY}}function Za(e,t,n,r,o){var i,a,u="IMG"===(i=t).nodeName&&(Ka()||!(null!==(a=document.documentElement)&&void 0!==a&&a.contains(i))),l=Qa(u?e:t),c={x:n.x-l.x,y:n.y-l.y},s=e.offsetWidth,f=e.offsetHeight,d=r.anchorX,p=r.anchorY,h=function(e,t,n,r){var o=e?t.width:n,i=e?t.height:r;return qa()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(u,t,s,f),v=h.dragPreviewWidth,m=h.dragPreviewHeight,g=o.offsetX,y=o.offsetY,b=0===y||y;return{x:0===g||g?g:new Ya([0,.5,1],[c.x,c.x/s*v,c.x+v-s]).interpolate(d),y:b?y:function(){var e=new Ya([0,.5,1],[c.y,c.y/f*m,c.y+m-f]).interpolate(p);return qa()&&u&&(e+=(window.devicePixelRatio-1)*m),e}()}}var eu,tu="__NATIVE_FILE__",nu="__NATIVE_URL__",ru="__NATIVE_TEXT__",ou="__NATIVE_HTML__";function iu(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=r?r:n}function au(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uu=(au(eu={},tu,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),au(eu,ou,{exposeProperties:{html:function(e,t){return iu(e,t,"")}},matchesTypes:["Html","text/html"]}),au(eu,nu,{exposeProperties:{urls:function(e,t){return iu(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),au(eu,ru,{exposeProperties:{text:function(e,t){return iu(e,t,"")}},matchesTypes:["Text","text/plain"]}),eu);function lu(e,t){for(var n=0;n-1}))}))[0]||null}function du(e,t){for(var n=0;n0&&o.actions.hover(t,{clientOffset:Ja(e)}),t.some((function(e){return o.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=o.getCurrentDropEffect())))})),yu(this,"handleTopDragOverCapture",(function(){o.dragOverTargetIds=[]})),yu(this,"handleTopDragOver",(function(e){var t=o.dragOverTargetIds;if(o.dragOverTargetIds=[],!o.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));o.altKeyPressed=e.altKey,o.actions.hover(t||[],{clientOffset:Ja(e)}),(t||[]).some((function(e){return o.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=o.getCurrentDropEffect())):o.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))})),yu(this,"handleTopDragLeaveCapture",(function(e){o.isDraggingNativeItem()&&e.preventDefault(),o.enterLeaveCounter.leave(e.target)&&o.isDraggingNativeItem()&&setTimeout((function(){return o.endDragNativeItem()}),0)})),yu(this,"handleTopDropCapture",(function(e){var t;(o.dropTargetIds=[],o.isDraggingNativeItem())?(e.preventDefault(),null===(t=o.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):fu(e.dataTransfer)&&e.preventDefault();o.enterLeaveCounter.reset()})),yu(this,"handleTopDrop",(function(e){var t=o.dropTargetIds;o.dropTargetIds=[],o.actions.hover(t,{clientOffset:Ja(e)}),o.actions.drop({dropEffect:o.getCurrentDropEffect()}),o.isDraggingNativeItem()?o.endDragNativeItem():o.monitor.isDragging()&&o.actions.endDrag()})),yu(this,"handleSelectStart",(function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))})),this.options=new hu(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new $a(this.isNodeInDocument)}var t,n,o;return t=e,(n=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:"teardown",value:function(){var e,t=this.rootElement;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var o=function(t){return r.handleDragStart(t,e)},i=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},i=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return mu({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return mu({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(r).some((function(t){return r[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new su(uu[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){var e;return null===(e=t.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}}])&&gu(t.prototype,n),o&&gu(t,o),e}(),ku=function(e,t,n){return new wu(e,t,n)};!function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(bu||(bu={}));var xu=1,Eu=0;function Su(e){return void 0===e.button||e.button===Eu}function Ou(e){return!!e.targetTouches}function Tu(e,t){return Ou(e)?function(e,t){return 1===e.targetTouches.length?Tu(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?Tu(e.touches[0]):void 0}(e,t):{x:e.clientX,y:e.clientY}}var Cu=function(){var e=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return e=!0,!0}}))}catch(e){}return e}();function Pu(e,t){for(var n=0;n=o[a].start)&&(null==o[a].end||i<=o[a].end))return!0;return!1}(o._mouseClientOffset.x||0,o._mouseClientOffset.y||0,c.x,c.y,o.options.scrollAngleRanges))o._isScrolling=!0;else if(!o.monitor.isDragging()&&o._mouseClientOffset.hasOwnProperty("x")&&a&&(t=o._mouseClientOffset.x||0,n=o._mouseClientOffset.y||0,r=c.x,i=c.y,Math.sqrt(Math.pow(Math.abs(r-t),2)+Math.pow(Math.abs(i-n),2))>(o.options.touchSlop?o.options.touchSlop:0))&&(o.moveStartSourceIds=void 0,o.actions.beginDrag(a,{clientOffset:o._mouseClientOffset,getSourceClientOffset:o.getSourceClientOffset,publishSource:!1})),o.monitor.isDragging()){var s=o.sourceNodes.get(o.monitor.getSourceId());o.installSourceNodeRemovalObserver(s),o.actions.publishDragSource(),e.cancelable&&e.preventDefault();var f=(u||[]).map((function(e){return o.targetNodes.get(e)})).filter((function(e){return!!e})),d=o.options.getDropTargetElementsAtPoint?o.options.getDropTargetElementsAtPoint(c.x,c.y,f):o.document.elementsFromPoint(c.x,c.y),p=[];for(var h in d)if(d.hasOwnProperty(h)){var v=d[h];for(p.push(v);v;)(v=v.parentElement)&&-1===p.indexOf(v)&&p.push(v)}var m=p.filter((function(e){return f.indexOf(e)>-1})).map((function(e){return o._getDropTargetId(e)})).filter((function(e){return!!e})).filter((function(e,t,n){return n.indexOf(e)===t}));if(l)for(var g in o.targetNodes){var y=o.targetNodes.get(g);if(s&&y&&y.contains(s)&&-1===m.indexOf(g)){m.unshift(g);break}}m.reverse(),o.actions.hover(m,{clientOffset:c})}}})),Du(this,"_getDropTargetId",(function(e){for(var t=o.targetNodes.keys(),n=t.next();!1===n.done;){var r=n.value;if(e===o.targetNodes.get(r))return r;n=t.next()}})),Du(this,"handleTopMoveEndCapture",(function(e){o._isScrolling=!1,o.lastTargetTouchFallback=void 0,function(e){return void 0===e.buttons||!(e.buttons&xu)}(e)&&(o.monitor.isDragging()&&!o.monitor.didDrop()?(e.cancelable&&e.preventDefault(),o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.drop(),o.actions.endDrag()):o.moveStartSourceIds=void 0)})),Du(this,"handleCancelOnEscape",(function(e){"Escape"===e.key&&o.monitor.isDragging()&&(o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.endDrag())})),this.options=new Nu(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(bu.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(bu.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(bu.keyboard)}var t,n,r;return t=e,(n=[{key:"profile",value:function(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"document",get:function(){return this.options.document}},{key:"setup",value:function(){var t=this.options.rootElement;t&&(Hi(!e.isSetUp,"Cannot have two Touch backends at the same time."),e.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}},{key:"teardown",value:function(){var t=this.options.rootElement;t&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}},{key:"addEventListener",value:function(e,t,n,r){var o=Cu?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){var i=_u[r][t];i&&e.addEventListener(i,n,o)}))}},{key:"removeEventListener",value:function(e,t,n,r){var o=Cu?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){var i=_u[r][t];i&&e.removeEventListener(i,n,o)}))}},{key:"connectDragSource",value:function(e,t){var n=this,r=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,"start",r),function(){n.sourceNodes.delete(e),n.removeEventListener(t,"start",r)}}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=this.options.rootElement;if(!this.document||!r)return function(){};var o=function(o){if(n.document&&r&&n.monitor.isDragging()){var i;switch(o.type){case _u.mouse.move:i={x:o.clientX,y:o.clientY};break;case _u.touch.move:i={x:o.touches[0].clientX,y:o.touches[0].clientY}}var a=null!=i?n.document.elementFromPoint(i.x,i.y):void 0,u=a&&t.contains(a);return a===t||u?n.handleMove(o,e):void 0}};return this.addEventListener(this.document.body,"move",o),this.targetNodes.set(e,t),function(){n.document&&(n.targetNodes.delete(e),n.removeEventListener(n.document.body,"move",o))}}},{key:"getTopMoveStartHandler",value:function(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}},{key:"installSourceNodeRemovalObserver",value:function(e){var t=this;this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver((function(){e&&!e.parentElement&&(t.resurrectSourceNode(),t.uninstallSourceNodeRemovalObserver())})),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}},{key:"resurrectSourceNode",value:function(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}},{key:"uninstallSourceNodeRemovalObserver",value:function(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}}])&&Ru(t.prototype,n),r&&Ru(t,r),e}();Du(Mu,"isSetUp",void 0);var Au=we()?function(e){return new Mu(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}:ku,Lu=Au===ku;n(690);const Fu="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3e%3cstyle%3e.st0%7bfill:%23666%7d%3c/style%3e%3cpath class='st0' d='M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM224 416H64V160h160v256zm224 0H288V160h160v256z'/%3e%3c/svg%3e";const Bu=function(e){var t=e.icon,n=e.label,r=e.isActive,o=e.onClick;return n=n||"",se.createElement("button",{type:"button",title:n,"aria-label":n,className:"mt-be-block-toolbar-button ".concat(r?"active":""),onClick:o},se.createElement("img",{src:t}))};var zu="mt-be-block-config-panel";const Uu=function(e){var t=zu;return e.className&&(t+=" ".concat(e.className)),se.createElement(Un,{timeout:100,in:e.in,unmountOnExit:!0,classNames:zu},se.createElement("div",{id:e.id||"",className:t},e.children))};function Hu(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function Vu(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Hu(i,r,o,a,u,"next",e)}function u(e){Hu(i,r,o,a,u,"throw",e)}a(void 0)}))}}function Wu(){return Wu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Qu(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Wu.apply(null,arguments)}function $u(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0;l--)i.removeBlock(t,t.blocks[t.blocks.length-1]);i.editManager.endGrouping(),c(!1)}}),[]),d=t.getColumnLayout();return se.createElement(se.Fragment,null,se.createElement(br,{block:t,keys:["className"]}),se.createElement("div",{className:"mt-be-columns",style:{display:"flex"}},t.blocks.map((function(e){return e.editor({focus:n,focusBlock:r,canRemove:o})}))),a.length>1&&n&&o&&se.createElement(cr,null,se.createElement(Bu,{icon:Fu,label:ue("Edit"),onClick:s})),se.createElement(Uu,{in:n&&l},se.createElement("ul",{style:{display:"flex",listStyle:"none"}},a.map((function(e){var t=e.toString();return se.createElement("li",{key:t},se.createElement("label",{onClick:f},se.createElement("input",{type:"radio",value:t,defaultChecked:d===t}),ue("{{columns}} columns",{columns:t})))})))))},ol=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qu(e,t)}(i,e);var t,n,r,o=Gu(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Ju(Xu(t=o.call(this)),"blocks",void 0),t.blocks=[t.newColumn(),t.newColumn()],e&&Object.assign(Xu(t),e),t}return Ku(i,null,[{key:"label",get:function(){return ue("Columns")}}]),Ku(i,[{key:"newColumn",value:function(){return new Gl({showShortcuts:!1})}},{key:"getColumnLayout",value:function(){return"".concat(this.blocks.length)}},{key:"childBlocks",value:function(){return this.blocks}},{key:"editor",value:function(e){var t=e.focus,n=e.focusBlock,r=e.canRemove;return se.createElement(rl,{key:this.id,block:this,focus:t,focusBlock:n,canRemove:r})}},{key:"html",value:function(){return'
').concat(this.blocks.map((function(e){return e.htmlString()})).join(""),"
")}},{key:"serialize",value:(r=Vu(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.editor.serializeMeta(this,t.external),e.next=3,Promise.all(this.blocks.map((function(e){return e.serialize(t)})));case 3:return r=e.sent,e.abrupt("return",'\x3c!-- mt-beb t="'.concat(this.constructor.typeId,'"').concat(n?" m='".concat(Wt(n),"'"):"",' --\x3e
').concat(r.join(""),"
\x3c!-- /mt-beb --\x3e"));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})}],[{key:"new",value:(n=Vu(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wu(Qu(i),"new",this).call(this,t);case 2:return n=e.sent,r=nl(t.editor),o=r.defaultColumns,n.blocks=Array(o).fill(null).map((function(){return n.newColumn()})),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"newFromHtml",value:(t=Vu(regeneratorRuntime.mark((function e(t){var n,r,o,a,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.node,r=t.factory,o=t.meta,a=t.context,e.next=3,rc(n.innerHTML,r,a,nc);case 3:return(u=e.sent).forEach((function(e){return e.showShortcuts=!1})),e.abrupt("return",new i(Object.assign({blocks:u},o)));case 6:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),i}(mn);Ju(ol,"typeId","core-columns"),Ju(ol,"selectable",!0),Ju(ol,"icon",Fu);const il=ol;const al=(0,se.memo)((function(){var e=yn(),t=e.editor,n=e.getFocusedIds,r=wn().removeBlock;return se.createElement("button",{type:"button",className:"mt-be-btn-remove",onClick:function(e){e.stopPropagation();var o=ac(t,n());t.editManager.beginGrouping(),o.forEach((function(e){return r(e)})),t.editManager.endGrouping()}})}));function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nr&&a>i)){if(nr;c--)p(c,c-1);e.index=r}}}}}}),[p,u]),[p,u]),2)[1];(0,se.useEffect)((function(){return function(){n.isNewlyAdded=!1}}),[]);var C=cl(Ua((0,se.useMemo)((function(){return{type:s?s.id:"block",item:{type:s?s.id:"block",id:t,index:u},collect:function(e){return{isDragging:e.isDragging()}}}}),[u]),[u]),3),P=C[0].isDragging,I=C[1],j=C[2],N={};N.opacity=P?Lu?0:.5:1,j(T(O));var R=0!==ac(y,g).length,D=(0,se.createRef)(),_=y.editor({focus:r,focusBlock:i,focusDescendant:R,canRemove:!0===l,parentBlock:s,clickBlockTargetRef:D}),M={block:y,index:b,rendered:!1},A=!!(r||i||R||y instanceof Gl||y instanceof il),L=(0,se.useMemo)((function(){return[function(e){if(!Xt(e.nativeEvent)){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation();var t=v();t.includes(y.id)||(e.preventDefault(),D.current?D.current.click():a||(0!==t.length&&e.shiftKey?m(lc(h,[].concat(ll(t),[y.id])).map((function(e){return e.id}))):m([y.id])))}},function(e){var t=v();h.commandManager.execute({command:"core-copyBlock",blockIds:0===t.length?[y.id]:t,editorContext:d,blocksContext:f,event:e.nativeEvent})},function(e){var t=v();h.commandManager.execute({command:"core-pasteBlock",blockIds:0===t.length?[y.id]:t,editorContext:d,blocksContext:f,event:e.nativeEvent})},function(){var e=v();if(e.length>=2){h.editManager.beginGrouping();for(var t=u,n=u+e.length;t=2){h.editManager.beginGrouping();for(var t=u+e.length-1;t>=u;t--)p(t+1,t);h.editManager.endGrouping()}else p(u,u+1,!0)}]}),[u]),F=cl(L,5),B=F[0],z=F[1],U=F[2],H=F[3],V=F[4];return(0,se.useEffect)((function(){if(w)return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)};function e(e){var t=e.key;if(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey||"Delete"===t||"Backspace"===t){var n=v();0!==n.length&&(h.editorElement.querySelector('[data-mt-block-editor-keep-focus="1"]')||(n.length>=2&&("Delete"===t||"Backspace"===t)?(e.preventDefault(),h.commandManager.execute({command:"core-deleteBlock",blockIds:n,editorContext:d,blocksContext:f,event:e})):h.commandManager.dispatchKeydownEvent({event:e,blockIds:n,editorContext:d,blocksContext:f})))}}}),[w]),se.createElement("div",{key:y.id,"data-mt-block-editor-block-id":y.id,"data-mt-block-editor-skip-focus-default":o||void 0,onClick:B,onCopy:z,onPaste:U,className:"mt-be-block-wrapper ".concat(w?"mt-be-focus-leader":""," ").concat(g.length>=2&&g.includes(y.id)?"mt-be-focus":""),style:N,ref:O},c&&!Ee()&&se.createElement(se.Fragment,null,se.createElement("div",{className:"mt-be-btn-move-wrapper"},se.createElement(Yn,{in:x,block:y}),se.createElement("button",{type:"button",className:"mt-be-btn-up",onClick:H}),se.createElement("span",{className:"mt-be-btn-move",onClick:S,ref:I}),se.createElement("button",{type:"button",className:"mt-be-btn-down",onClick:V})),se.createElement("div",{className:"mt-be-btn-add-wrapper"},se.createElement("div",{style:{position:"relative"}},se.createElement(ir,{index:b}))),se.createElement("div",{className:"mt-be-btn-remove-wrapper"},se.createElement(al,null))),se.createElement("div",{className:"mt-be-block"},!r&&!(y instanceof il)&&se.createElement("div",{className:"mt-be-content-label"},y.contentLabel()),A&&se.createElement(kn.Provider,{value:M},_,r&&c&&Ee()&&se.createElement(dl,null)),se.createElement(se.Fragment,null,se.createElement(Ui.div,null,se.createElement("div",ul({className:h.opts.rootClassName||"",style:{overflow:"auto"}},h.opts.rootAttributes),se.createElement(pl,{editor:h}),!A&&_)))))};n(8428);function vl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ml(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=1&&rn(t[0],e))return t.length>=2?[t[0]]:t;if(t.length>=2){var r=bl(t,2),o=r[0],i=r[1];if(e.width===o.width&&o.width===i.width&&"number"==typeof e.height&&"number"==typeof o.height&&"number"==typeof i.height&&e.height-o.height==o.height-i.height||e.height===o.height&&o.height===i.height&&"number"==typeof e.width&&"number"==typeof o.width&&"number"==typeof i.width&&e.width-o.width==o.width-i.width)return n.iframePreviewSize&&rn(n.iframePreviewSize,t[1])?t:(n.setIframePreviewSize(t[1]),yl(t))}return n.setIframePreviewSize(e),0===t.length?[e]:[e,t[0]]}))}),[]),k=n.getIframePreviewSize(g),x=(0,se.useCallback)((function(e,t,r){if(!a||!1!==a(t))if(t)i&&i(t);else{r.preserveBlockData||(e=e.replace(//g,""));var o=n.compiledHtml;n.compiledHtml=e,n.removeIntermediateProduct=!!r.removeIntermediateProduct,r.addEditHistory&&d.editManager.add({block:n,data:{last:o,cur:e},handlers:xl}),d.emit("setCompiledHtmlIframePreview",{editor:d,block:n}),i&&i(null),y((function(e){return"number"==typeof e?e+1:1}))}}),[]);"string"!=typeof r&&null===m&&(o="",r.then(y));var E={editor:d,scheme:c,sandbox:f,html:g,head:'\n \n \n \n \n ${editor.stylesheets\n .map((s) => {\n if (s.type === StylesheetType.css) {\n return ``;\n } else {\n return ``;\n }\n })\n .join(\"\")}\n ${header || \"\"}\n `,\n };\n editor.emit(\"beforeRenderIframePreview\", beforeRenderIframePreviewOpt);\n const htmlText = beforeRenderIframePreviewOpt.html;\n const head = beforeRenderIframePreviewOpt.head;\n\n const [src, setSrc] = useState(\"\");\n useEffect(() => {\n if (!header && !htmlText) {\n if (src !== \"\") {\n setSrc(\"\");\n }\n return;\n }\n\n const rootAttributesObj = editor.opts.rootAttributes as Record<\n string,\n string\n >;\n const rootAttributes = Object.keys(rootAttributesObj)\n .map((k) => {\n const map: Record = { \"&\": \"&\", '\"': \""\" };\n const v = rootAttributesObj[k].replace(/[&\"]/g, (m) => map[m]);\n return `${k}=\"${v}\"`;\n })\n .join(\" \");\n\n const blob = new Blob(\n [\n `\n \n ${head}${htmlText}`,\n ],\n { type: \"text/html\" }\n );\n\n if (beforeRenderIframePreviewOpt.scheme === \"blob\") {\n setSrc(URL.createObjectURL(blob));\n } else {\n const reader = new FileReader();\n reader.readAsDataURL(blob);\n reader.onload = () => {\n setSrc(reader.result?.toString() || \"\");\n };\n }\n }, [block.compiledHtml, header, htmlText]);\n\n useEffect(() => {\n const onMessage = (ev: MessageEvent): void => {\n const containerEl = containerElRef.current;\n\n if (\n !(\n containerEl &&\n ev.source ===\n (containerEl.firstChild as HTMLIFrameElement).contentWindow &&\n ev.data &&\n ev.data.blockId === block.id\n )\n ) {\n return;\n }\n\n switch (ev.data.method) {\n case \"MTBlockEditorInitSize\":\n if (!isDefaultSize(size)) {\n break;\n }\n\n setSize({ ...size, ...ev.data.arguments });\n break;\n case \"MTBlockEditorSetSize\":\n (Object.keys(size) as Array).forEach((k) => {\n const oldValue =\n typeof size[k] === \"number\"\n ? (size[k] as number)\n : parseFloat(size[k] as string);\n const newValue =\n typeof ev.data.arguments[k] === \"number\"\n ? (ev.data.arguments[k] as number)\n : parseFloat(ev.data.arguments[k] as string);\n if (\n oldValue &&\n newValue &&\n oldValue > newValue &&\n Math.abs(oldValue - newValue) < SHRINK_THRESHOLD\n ) {\n ev.data.arguments[k] = size[k];\n }\n });\n\n if (\n size.width !== ev.data.arguments.width ||\n size.height !== ev.data.arguments.height\n ) {\n setSize(ev.data.arguments);\n }\n break;\n case \"MTBlockEditorOnClick\":\n (\n containerEl.closest(\"[data-mt-block-editor-block-id]\") ||\n (containerEl.getRootNode() as ShadowRoot)?.host\n )?.dispatchEvent(\n new MouseEvent(\"click\", {\n bubbles: true,\n cancelable: true,\n ...ev.data.arguments,\n })\n );\n break;\n case \"MTBlockEditorOnKeydown\":\n window.dispatchEvent(new KeyboardEvent(\"keydown\", ev.data.arguments));\n break;\n case \"MTBlockEditorSetCompiledHtml\":\n setCompiledHtml(\n ev.data.html,\n ev.data.html == null ? new Error(ev.data.error || \"Error\") : null,\n ev.data.arguments as SetCompiledHtmlOptions\n );\n break;\n }\n };\n\n window.addEventListener(\"message\", onMessage, {\n capture: true,\n passive: true,\n });\n return () => {\n window.removeEventListener(\"message\", onMessage, {\n capture: true,\n });\n };\n }, [size]);\n\n return (\n
\n \n
\n );\n};\n\nexport default BlockIframePreview;\n","import { t } from \"../i18n\";\nimport React, {\n Fragment,\n useCallback,\n useEffect,\n useMemo,\n CSSProperties,\n} from \"react\";\nimport { render, unmountComponentAtNode } from \"react-dom\";\nimport {\n EditorContext,\n useEditorContext,\n BlocksContext,\n BlocksContextProps,\n} from \"../Context\";\nimport Block, {\n NewFromHtmlOptions,\n EditorOptions,\n SerializeOptions,\n CompileOptions,\n HasBlocks,\n} from \"../Block\";\nimport AddButton from \"../Component/AddButton\";\nimport BlockItem from \"../Component/BlockItem\";\nimport BlockIframePreview from \"../Component/BlockIframePreview\";\nimport BlockSetupCommon from \"../Component/BlockSetupCommon\";\nimport {\n parseContent,\n NO_BLOCK_TYPE_FALLBACK,\n preParseContent,\n escapeSingleQuoteAttribute,\n ParserContext,\n} from \"../util\";\n\ninterface EditorProps extends EditorOptions {\n block: Column;\n}\n\nconst COMPILE_TIMEOUT = 2000;\nconst SERIALIZATION_PARALLELISM = 4;\n\nconst STYLE_HIDDEN: CSSProperties = {\n position: \"absolute\",\n overflow: \"hidden\",\n height: \"0px\",\n border: \"none\",\n};\n\nconst Editor: React.FC = ({\n block,\n focus,\n focusBlock,\n focusDescendant,\n canRemove,\n}: EditorProps) => {\n if (\n (block.constructor as typeof Block).typeId !== \"core-column\" ||\n canRemove === undefined\n ) {\n canRemove = block.canRemoveBlock;\n }\n\n const { editor, setFocusedIds } = useEditorContext();\n\n const blocksContext = useMemo(\n () => ({\n panelBlockTypes: block.panelBlockTypes,\n shortcutBlockTypes: block.shortcutBlockTypes,\n addBlock: (b: Block, index: number | Block) => {\n if (index instanceof Block) {\n index = block.blocks.indexOf(index) + 1;\n }\n editor.addBlock(block, b, index);\n setFocusedIds([b.id]);\n },\n mergeBlock: (b: Block) => {\n const index = block.blocks.indexOf(b);\n if (editor.mergeBlock(block, b)) {\n setFocusedIds([block.blocks[index - 1].id]);\n }\n },\n removeBlock: (b: Block) => {\n const index = block.blocks.indexOf(b);\n editor.removeBlock(block, b);\n if (index > 0) {\n setFocusedIds([block.blocks[index - 1].id]);\n }\n },\n swapBlocks: (dragIndex: number, hoverIndex: number, scroll?: boolean) => {\n if (\n dragIndex === undefined ||\n hoverIndex === undefined ||\n !block.blocks[dragIndex] ||\n !block.blocks[hoverIndex]\n ) {\n return;\n }\n\n if (scroll) {\n const destEl = block.blocks[dragIndex].wrapperRef.current;\n if (!destEl) {\n return;\n }\n\n const rect = destEl.getBoundingClientRect();\n const scrollTop =\n window.pageYOffset || document.documentElement.scrollTop;\n const offsetTop = rect.height + 22;\n\n window.scrollTo({\n top: scrollTop + (dragIndex > hoverIndex ? -offsetTop : offsetTop),\n behavior: \"smooth\",\n });\n }\n\n editor.swapBlocks(block, dragIndex, hoverIndex);\n },\n }),\n []\n );\n\n const resetCompiledHtml = useCallback(() => {\n block.resetCompiledHtml();\n }, []);\n useEffect(() => {\n editor.on(\"change\", resetCompiledHtml);\n\n if (block._html !== \"\") {\n parseContent(\n preParseContent(block._html),\n editor.factory,\n new ParserContext()\n ).then((blocks) => {\n block._html = \"\";\n block.blocks = blocks;\n if (blocks[0]) {\n setFocusedIds([blocks[0].id]);\n }\n });\n }\n\n return () => {\n editor.off(\"change\", resetCompiledHtml);\n };\n }, []);\n\n useEffect(() => {\n if (focusDescendant) {\n resetCompiledHtml();\n return;\n }\n\n if (\n (block.constructor as typeof Block).shouldBeCompiled &&\n block.compiledHtml === undefined &&\n !focus &&\n !focusDescendant\n ) {\n block.compile({ editor });\n }\n }, [focus, focusDescendant]);\n\n const res = (\n \n \n {block.blocks.map((b, i) => {\n const focusFirstBlock = canRemove !== true && block.blocks.length === 1;\n const focusItem = (focus && focusFirstBlock) || undefined;\n return (\n \n );\n })}\n {canRemove && (\n
\n \n
\n )}\n
\n );\n\n if ((block.constructor as typeof Column).typeId === \"core-column\") {\n return (\n
\n {res}\n
\n );\n } else {\n return res;\n }\n};\n\nclass Column extends Block implements HasBlocks {\n public static typeId = \"core-column\";\n public static className = \"mt-be-column\";\n public static rootBlock: string | null = \"div\";\n public static selectable = false;\n public static showPreview = true;\n public static get label(): string {\n return t(\"Column\");\n }\n\n public _html = \"\";\n public previewHeader = \"\";\n public showShortcuts = true;\n public blocks: Block[] = [];\n public cancelOngoingCompilationHandlers: (() => void)[] = [];\n\n public canRemoveBlock = true;\n public panelBlockTypes: string[] | null = null;\n public shortcutBlockTypes: string[] | null = null;\n\n public constructor(init?: Partial) {\n super();\n if (init) {\n Object.assign(this, init);\n }\n }\n\n public childBlocks(): Block[] {\n return this.blocks;\n }\n\n public get rootBlock(): string | null {\n return (this.constructor as typeof Column).rootBlock;\n }\n\n public get showPreview(): boolean {\n return (this.constructor as typeof Column).showPreview;\n }\n\n public resetCompiledHtml(): void {\n this.compiledHtml = undefined;\n this.removeIntermediateProduct = false;\n\n this.cancelOngoingCompilationHandlers.map((h) => {\n h();\n });\n this.cancelOngoingCompilationHandlers = [];\n }\n\n public editor({\n focus,\n focusBlock,\n focusDescendant,\n canRemove,\n }: EditorOptions): JSX.Element {\n if (\n this.showPreview &&\n (this.constructor as typeof Column).typeId !== \"core-column\" &&\n ((this._html === \"\" &&\n this.blocks.length === 0 &&\n this.effectiveAddableBlockTypes().length === 0) ||\n (!focus && !focusDescendant && !focusBlock))\n ) {\n return (\n \n );\n }\n\n return (\n \n \n \n );\n }\n\n public isBlank(): boolean {\n return this.blocks.length === 0;\n }\n\n private async serializeChildBlocks(\n opts: SerializeOptions\n ): Promise {\n const serializeChildOpts: Readonly = {\n ...opts,\n removeChildIntermediateProduct:\n opts.removeChildIntermediateProduct || this.removeIntermediateProduct,\n };\n if (this.blocks.length <= SERIALIZATION_PARALLELISM) {\n return Promise.all(\n this.blocks.map((c) => c.serialize(serializeChildOpts))\n );\n }\n\n const res: string[] = [];\n const indexes = Object.keys(this.blocks).map((i) => Number(i));\n await Promise.all(\n [...Array(SERIALIZATION_PARALLELISM)].map(async () => {\n for (let i = indexes.shift(); i !== undefined; i = indexes.shift()) {\n res[i] = await this.blocks[i].serialize(serializeChildOpts);\n }\n })\n );\n return res;\n }\n\n public async serializedString(opts: SerializeOptions): Promise {\n const classNames = [\n (this.constructor as typeof Column).className,\n this.className,\n ].filter((c) => c);\n const serializedBlocks = await this.serializeChildBlocks(opts);\n\n return [\n this.rootBlock\n ? `<${this.rootBlock}${\n classNames.length\n ? ` class='${escapeSingleQuoteAttribute(classNames.join(\" \"))}'`\n : \"\"\n }>`\n : \"\",\n serializedBlocks.join(\"\"),\n this.rootBlock ? `` : \"\",\n ].join(\"\");\n }\n\n public async compile({ editor }: CompileOptions): Promise {\n let canceled = false;\n this.cancelOngoingCompilationHandlers.push(() => {\n canceled = true;\n });\n const onBeforeSetCompiledHtml = (): boolean => !canceled;\n\n const sourceHtml = await this.serializedString({ editor, external: false });\n return new Promise((resolve, reject) => {\n let timeoutId: ReturnType | null = null;\n\n const div = document.createElement(\"div\");\n Object.assign(div.style, STYLE_HIDDEN);\n document.body.appendChild(div);\n\n const onSetCompiledHtml = (error: Error | null): void => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n timeoutId = null;\n }\n\n unmountComponentAtNode(div);\n div.remove();\n if (error) {\n reject(error);\n } else {\n resolve();\n }\n };\n\n const editorContext = {\n editor,\n setFocusedIds: () => undefined,\n getFocusedIds: () => [],\n };\n\n render(\n \n \n ,\n div\n );\n\n const opts = editor.opts.block[\"core-column\"] || {};\n timeoutId = setTimeout(async () => {\n if (!canceled) {\n this.compiledHtml ||= sourceHtml;\n }\n onSetCompiledHtml(null);\n }, opts[\"compile-timeout\"] || COMPILE_TIMEOUT);\n });\n }\n\n public async serialize(opts: SerializeOptions): Promise {\n if (\n (this.constructor as typeof Block).shouldBeCompiled ||\n this.compiledHtml !== undefined\n ) {\n return super.serialize(opts);\n }\n\n const m = opts.editor.serializeMeta(this, opts.external);\n const typeId = (this.constructor as typeof Column).typeId;\n return [\n ``,\n await this.serializedString(opts),\n ``,\n ].join(\"\");\n }\n\n public static async newFromHtml({\n node,\n factory,\n meta,\n context,\n }: NewFromHtmlOptions): Promise {\n const html = node.hasAttribute(\"h\")\n ? preParseContent(node.getAttribute(\"h\") || \"\")\n : node.innerHTML;\n const blocks = await parseContent(\n html,\n factory,\n context,\n NO_BLOCK_TYPE_FALLBACK\n );\n const compiledHtml =\n (node.hasAttribute(\"h\") ? node.textContent : undefined) ?? undefined;\n\n return new this(\n Object.assign(\n { blocks, compiledHtml, _html: \"\" },\n meta as Partial\n )\n );\n }\n\n private effectiveAddableBlockTypes(): string[] {\n if (!this.canRemoveBlock) {\n return [];\n }\n return (this.panelBlockTypes || []).concat(this.shortcutBlockTypes || []);\n }\n}\n\nexport default Column;\n","import Editor from \"../Editor\";\nimport Block from \"../Block\";\nimport BlockFactory from \"../BlockFactory\";\nimport Text from \"../Block/Text\";\nimport Column from \"../Block/Column\";\nimport ParserContext from \"./ParserContext\";\n\nexport const preParseContent = (() => {\n const entityMap = {\n \"&\": \"&\",\n \"<\": \"<\",\n \">\": \">\",\n } as { [key: string]: string };\n const entityReverseMap = Object.fromEntries(\n Object.entries(entityMap).map(([k, v]) => [v, k])\n );\n const entityRegExp = new RegExp(`[${Object.keys(entityMap).join(\"\")}]`, \"g\");\n const entityReverseRegExp = new RegExp(\n `(?:${Object.keys(entityReverseMap).join(\"|\")})`,\n \"g\"\n );\n\n return (value: string): string => {\n return value\n .replace(entityRegExp, (match) => entityMap[match])\n .replace(/<!--\\s+(\\/?mt-beb.*?)-->/g, (all, tag: string) => {\n return `<${tag.replace(\n entityReverseRegExp,\n (match) => entityReverseMap[match]\n )}>`;\n });\n };\n})();\n\nexport function removeControlCharacters(str: string): string {\n return str.replace(\n // eslint-disable-next-line no-control-regex,no-misleading-character-class\n /&#(?:0*?(?:[0-8]|1[124-9]|2\\d|3[01])?|x0*?(?:[0-8bcefBCEF]|1[0-9a-fA-F])?);|[^\\x09\\x0A\\x0D\\x20-\\xFF\\x85\\xA0-\\uD7FF\\uE000-\\uFDCF\\uFDE0-\\uFFFD\\uD800-\\uDBFF\\uDC00-\\uDFFF]/gm,\n \"\"\n );\n}\n\nexport const NO_BLOCK_TYPE_FALLBACK = \"\";\n\nexport async function parseContent(\n value: string,\n factory: BlockFactory,\n context: ParserContext,\n fallbackBlockType: string | typeof NO_BLOCK_TYPE_FALLBACK = \"core-html\"\n): Promise {\n if (!value) {\n return [];\n }\n\n const domparser = new DOMParser();\n const doc = domparser.parseFromString(\n `${removeControlCharacters(value)}`,\n \"application/xml\"\n );\n\n if (!doc.children[0]) {\n return [];\n }\n\n let children = [...doc.children[0].children];\n if (children.length === 0) {\n if (fallbackBlockType !== NO_BLOCK_TYPE_FALLBACK) {\n const fallback = document.createElement(\"div\");\n fallback.setAttribute(\"t\", fallbackBlockType);\n fallback.innerHTML = value;\n children = [fallback];\n } else {\n return [];\n }\n }\n\n // TODO: verify\n const blocks = [];\n for (let i = 0; i < children.length; i++) {\n const node = children[i];\n const typeId = node.getAttribute(\"t\") || \"core-text\";\n\n const metaRawValue = node.getAttribute(\"m\") || \"{}\";\n const metaArray = (metaRawValue.match(/\\w+|,|.+/g) || [])\n .filter((str) => str !== \",\")\n .map((str) =>\n /^[^{]/.test(str) ? context.get(str) || {} : JSON.parse(str)\n );\n const meta =\n metaArray.length === 1\n ? metaArray[0]\n : Object.assign.apply(null, [{}, ...metaArray]);\n\n if (typeId === \"core-context\") {\n for (const k in meta) {\n context.set(k, meta[k]);\n }\n continue;\n }\n\n let html = node.getAttribute(\"h\") || \"\";\n if (!html && node.textContent) {\n let c = node.textContent;\n if (meta.className) {\n c = c.replace(\n /^(<[^>]+)( class=\")([^\"]+)\"/,\n (m, tag, prefix, classNames) => {\n const filtered = classNames\n .split(/\\s+/)\n .filter((c: string) => c !== meta.className)\n .join(\" \");\n\n if (filtered) {\n return `${tag}${prefix}${filtered}\"`;\n } else {\n return tag;\n }\n }\n );\n }\n html = c;\n }\n\n const param = {\n html,\n node,\n factory,\n meta,\n context,\n };\n\n const t =\n factory.types().find((t: typeof Block) => t.typeId === typeId) || Column;\n const block = await t\n .newFromHtml(param)\n .catch(() => Text.newFromHtml(param));\n blocks.push(block);\n }\n\n return blocks;\n}\n\nconst emptyBlocks: Block[] = [];\nexport function findDescendantBlocks(\n ancestor: Block | Editor,\n ids: Readonly\n): Readonly {\n if (ids.length === 0) {\n return emptyBlocks;\n }\n\n const childBlocks =\n ancestor instanceof Editor ? ancestor.blocks : ancestor.childBlocks();\n if (childBlocks.length === 0) {\n return emptyBlocks;\n }\n\n return findDescendantBlocksInternal([...ids], childBlocks);\n}\n\nfunction findDescendantBlocksInternal(\n ids: string[],\n childBlocks: Readonly\n): Readonly {\n const result: Block[] = [];\n for (let i = 0, len = childBlocks.length; i < len; i++) {\n const b = childBlocks[i];\n const index = ids.indexOf(b.id);\n if (index !== -1) {\n result.push(b);\n ids.splice(index, 1);\n if (ids.length === 0) {\n return result;\n }\n }\n\n result.push(...findDescendantBlocksInternal(ids, b.childBlocks()));\n if (ids.length === 0) {\n return result;\n }\n }\n\n return result;\n}\n\ninterface GetBlocksByRangeState {\n ids: Readonly>;\n rootBlocks: Readonly;\n foundCount: number;\n startBlocks?: Readonly;\n endBlocks?: Readonly;\n result?: Readonly;\n}\nexport function getBlocksByRange(\n ancestor: Block | Editor,\n ids: Readonly\n): Readonly {\n const childBlocks =\n ancestor instanceof Editor ? ancestor.blocks : ancestor.childBlocks();\n const state: GetBlocksByRangeState = {\n ids: new Set(ids),\n rootBlocks: childBlocks,\n foundCount: 0,\n };\n getBlocksByRangeInternal(childBlocks, state);\n return state.result || emptyBlocks;\n}\n\nfunction getBlocksByRangeInternal(\n childBlocks: Readonly,\n state: GetBlocksByRangeState,\n parents: Readonly = []\n): Readonly | undefined {\n if (state.result && state.foundCount === state.ids.size) {\n return;\n }\n childBlocks.forEach((b) => {\n const currentBlocks = [...parents, b];\n\n getBlocksByRangeInternal(b.childBlocks(), state, currentBlocks);\n if (state.result && state.foundCount === state.ids.size) {\n return;\n }\n if (state.ids.has(b.id)) {\n state.foundCount++;\n\n if (state.ids.size === 1) {\n state.result = [b];\n } else if (state.startBlocks) {\n let range: {\n blocks: Readonly;\n start: string;\n end: string;\n };\n findRange: for (let i = state.startBlocks.length - 2; i >= 0; i--) {\n for (let j = currentBlocks.length - 2; j >= 0; j--) {\n if (state.startBlocks[i] === currentBlocks[j]) {\n range = {\n blocks: state.startBlocks[i].childBlocks(),\n start: state.startBlocks[i + 1].id,\n end: currentBlocks[j + 1].id,\n };\n break findRange;\n }\n }\n }\n\n range ||= {\n blocks: state.rootBlocks,\n start: state.startBlocks[0].id,\n end: currentBlocks[0].id,\n };\n\n const blockIds = range.blocks.map((b) => b.id);\n state.result = range.blocks.slice(\n blockIds.indexOf(range.start),\n blockIds.indexOf(range.end) + 1\n );\n } else {\n state.startBlocks = currentBlocks;\n }\n }\n });\n}\n","import platform from \"platform\";\n\nconst labels = {\n mac: {\n cmd: \"⌘\",\n alt: \"⌥\",\n ctrl: \"⌃\",\n shift: \"⇧\",\n },\n other: {\n cmd: \"Ctrl+\",\n alt: \"Alt+\",\n ctrl: \"Ctrl+\",\n shift: \"Shift+\",\n },\n};\n\nlet isMac = false;\nlet labelMap = labels.other;\n\nexport function setPlatform(_platform: typeof platform): void {\n isMac = [\"OS X\", \"iOS\"].includes(_platform.os?.family || \"\");\n labelMap = isMac ? labels.mac : labels.other;\n}\nsetPlatform(platform);\n\nexport function toKeyboardShortcutKey(ev: KeyboardEvent): string {\n return `${ev.ctrlKey && isMac ? \"ctrl+\" : \"\"}${ev.altKey ? \"alt+\" : \"\"}${\n ev.shiftKey ? \"shift+\" : \"\"\n }${ev.metaKey || (ev.ctrlKey && !isMac) ? \"cmd+\" : \"\"}${ev.key}`;\n}\n\nexport function toKeyboardShortcutLabel(key: string): string {\n return key.replace(\n /(ctrl|cmd|alt|shift)\\+/g,\n (all, key: keyof typeof labelMap) => {\n return labelMap[key] || key;\n }\n );\n}\n","class ParserContext extends Map {}\n\nexport default ParserContext;\n","export var INIT_COORDS = 'dnd-core/INIT_COORDS';\nexport var BEGIN_DRAG = 'dnd-core/BEGIN_DRAG';\nexport var PUBLISH_DRAG_SOURCE = 'dnd-core/PUBLISH_DRAG_SOURCE';\nexport var HOVER = 'dnd-core/HOVER';\nexport var DROP = 'dnd-core/DROP';\nexport var END_DRAG = 'dnd-core/END_DRAG';","import { INIT_COORDS } from '../types';\nexport function setClientOffset(clientOffset, sourceClientOffset) {\n return {\n type: INIT_COORDS,\n payload: {\n sourceClientOffset: sourceClientOffset || null,\n clientOffset: clientOffset || null\n }\n };\n}","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n// cheap lodash replacements\n\n/**\n * drop-in replacement for _.get\n * @param obj\n * @param path\n * @param defaultValue\n */\nexport function get(obj, path, defaultValue) {\n return path.split('.').reduce(function (a, c) {\n return a && a[c] ? a[c] : defaultValue || null;\n }, obj);\n}\n/**\n * drop-in replacement for _.without\n */\n\nexport function without(items, item) {\n return items.filter(function (i) {\n return i !== item;\n });\n}\n/**\n * drop-in replacement for _.isString\n * @param input\n */\n\nexport function isString(input) {\n return typeof input === 'string';\n}\n/**\n * drop-in replacement for _.isString\n * @param input\n */\n\nexport function isObject(input) {\n return _typeof(input) === 'object';\n}\n/**\n * repalcement for _.xor\n * @param itemsA\n * @param itemsB\n */\n\nexport function xor(itemsA, itemsB) {\n var map = new Map();\n\n var insertItem = function insertItem(item) {\n map.set(item, map.has(item) ? map.get(item) + 1 : 1);\n };\n\n itemsA.forEach(insertItem);\n itemsB.forEach(insertItem);\n var result = [];\n map.forEach(function (count, key) {\n if (count === 1) {\n result.push(key);\n }\n });\n return result;\n}\n/**\n * replacement for _.intersection\n * @param itemsA\n * @param itemsB\n */\n\nexport function intersection(itemsA, itemsB) {\n return itemsA.filter(function (t) {\n return itemsB.indexOf(t) > -1;\n });\n}","import { invariant } from '@react-dnd/invariant';\nimport { setClientOffset } from './local/setClientOffset';\nimport { isObject } from '../../utils/js_utils';\nimport { BEGIN_DRAG, INIT_COORDS } from './types';\nvar ResetCoordinatesAction = {\n type: INIT_COORDS,\n payload: {\n clientOffset: null,\n sourceClientOffset: null\n }\n};\nexport function createBeginDrag(manager) {\n return function beginDrag() {\n var sourceIds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n publishSource: true\n };\n var _options$publishSourc = options.publishSource,\n publishSource = _options$publishSourc === void 0 ? true : _options$publishSourc,\n clientOffset = options.clientOffset,\n getSourceClientOffset = options.getSourceClientOffset;\n var monitor = manager.getMonitor();\n var registry = manager.getRegistry(); // Initialize the coordinates using the client offset\n\n manager.dispatch(setClientOffset(clientOffset));\n verifyInvariants(sourceIds, monitor, registry); // Get the draggable source\n\n var sourceId = getDraggableSource(sourceIds, monitor);\n\n if (sourceId === null) {\n manager.dispatch(ResetCoordinatesAction);\n return;\n } // Get the source client offset\n\n\n var sourceClientOffset = null;\n\n if (clientOffset) {\n if (!getSourceClientOffset) {\n throw new Error('getSourceClientOffset must be defined');\n }\n\n verifyGetSourceClientOffsetIsFunction(getSourceClientOffset);\n sourceClientOffset = getSourceClientOffset(sourceId);\n } // Initialize the full coordinates\n\n\n manager.dispatch(setClientOffset(clientOffset, sourceClientOffset));\n var source = registry.getSource(sourceId);\n var item = source.beginDrag(monitor, sourceId); // If source.beginDrag returns null, this is an indicator to cancel the drag\n\n if (item == null) {\n return undefined;\n }\n\n verifyItemIsObject(item);\n registry.pinSource(sourceId);\n var itemType = registry.getSourceType(sourceId);\n return {\n type: BEGIN_DRAG,\n payload: {\n itemType: itemType,\n item: item,\n sourceId: sourceId,\n clientOffset: clientOffset || null,\n sourceClientOffset: sourceClientOffset || null,\n isSourcePublic: !!publishSource\n }\n };\n };\n}\n\nfunction verifyInvariants(sourceIds, monitor, registry) {\n invariant(!monitor.isDragging(), 'Cannot call beginDrag while dragging.');\n sourceIds.forEach(function (sourceId) {\n invariant(registry.getSource(sourceId), 'Expected sourceIds to be registered.');\n });\n}\n\nfunction verifyGetSourceClientOffsetIsFunction(getSourceClientOffset) {\n invariant(typeof getSourceClientOffset === 'function', 'When clientOffset is provided, getSourceClientOffset must be a function.');\n}\n\nfunction verifyItemIsObject(item) {\n invariant(isObject(item), 'Item must be an object.');\n}\n\nfunction getDraggableSource(sourceIds, monitor) {\n var sourceId = null;\n\n for (var i = sourceIds.length - 1; i >= 0; i--) {\n if (monitor.canDragSource(sourceIds[i])) {\n sourceId = sourceIds[i];\n break;\n }\n }\n\n return sourceId;\n}","import { PUBLISH_DRAG_SOURCE } from './types';\nexport function createPublishDragSource(manager) {\n return function publishDragSource() {\n var monitor = manager.getMonitor();\n\n if (monitor.isDragging()) {\n return {\n type: PUBLISH_DRAG_SOURCE\n };\n }\n };\n}","export function matchesType(targetType, draggedItemType) {\n if (draggedItemType === null) {\n return targetType === null;\n }\n\n return Array.isArray(targetType) ? targetType.some(function (t) {\n return t === draggedItemType;\n }) : targetType === draggedItemType;\n}","import { invariant } from '@react-dnd/invariant';\nimport { matchesType } from '../../utils/matchesType';\nimport { HOVER } from './types';\nexport function createHover(manager) {\n return function hover(targetIdsArg) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n clientOffset = _ref.clientOffset;\n\n verifyTargetIdsIsArray(targetIdsArg);\n var targetIds = targetIdsArg.slice(0);\n var monitor = manager.getMonitor();\n var registry = manager.getRegistry();\n checkInvariants(targetIds, monitor, registry);\n var draggedItemType = monitor.getItemType();\n removeNonMatchingTargetIds(targetIds, registry, draggedItemType);\n hoverAllTargets(targetIds, monitor, registry);\n return {\n type: HOVER,\n payload: {\n targetIds: targetIds,\n clientOffset: clientOffset || null\n }\n };\n };\n}\n\nfunction verifyTargetIdsIsArray(targetIdsArg) {\n invariant(Array.isArray(targetIdsArg), 'Expected targetIds to be an array.');\n}\n\nfunction checkInvariants(targetIds, monitor, registry) {\n invariant(monitor.isDragging(), 'Cannot call hover while not dragging.');\n invariant(!monitor.didDrop(), 'Cannot call hover after drop.');\n\n for (var i = 0; i < targetIds.length; i++) {\n var targetId = targetIds[i];\n invariant(targetIds.lastIndexOf(targetId) === i, 'Expected targetIds to be unique in the passed array.');\n var target = registry.getTarget(targetId);\n invariant(target, 'Expected targetIds to be registered.');\n }\n}\n\nfunction removeNonMatchingTargetIds(targetIds, registry, draggedItemType) {\n // Remove those targetIds that don't match the targetType. This\n // fixes shallow isOver which would only be non-shallow because of\n // non-matching targets.\n for (var i = targetIds.length - 1; i >= 0; i--) {\n var targetId = targetIds[i];\n var targetType = registry.getTargetType(targetId);\n\n if (!matchesType(targetType, draggedItemType)) {\n targetIds.splice(i, 1);\n }\n }\n}\n\nfunction hoverAllTargets(targetIds, monitor, registry) {\n // Finally call hover on all matching targets.\n targetIds.forEach(function (targetId) {\n var target = registry.getTarget(targetId);\n target.hover(monitor, targetId);\n });\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { invariant } from '@react-dnd/invariant';\nimport { DROP } from './types';\nimport { isObject } from '../../utils/js_utils';\nexport function createDrop(manager) {\n return function drop() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var monitor = manager.getMonitor();\n var registry = manager.getRegistry();\n verifyInvariants(monitor);\n var targetIds = getDroppableTargets(monitor); // Multiple actions are dispatched here, which is why this doesn't return an action\n\n targetIds.forEach(function (targetId, index) {\n var dropResult = determineDropResult(targetId, index, registry, monitor);\n var action = {\n type: DROP,\n payload: {\n dropResult: _objectSpread(_objectSpread({}, options), dropResult)\n }\n };\n manager.dispatch(action);\n });\n };\n}\n\nfunction verifyInvariants(monitor) {\n invariant(monitor.isDragging(), 'Cannot call drop while not dragging.');\n invariant(!monitor.didDrop(), 'Cannot call drop twice during one drag operation.');\n}\n\nfunction determineDropResult(targetId, index, registry, monitor) {\n var target = registry.getTarget(targetId);\n var dropResult = target ? target.drop(monitor, targetId) : undefined;\n verifyDropResultType(dropResult);\n\n if (typeof dropResult === 'undefined') {\n dropResult = index === 0 ? {} : monitor.getDropResult();\n }\n\n return dropResult;\n}\n\nfunction verifyDropResultType(dropResult) {\n invariant(typeof dropResult === 'undefined' || isObject(dropResult), 'Drop result must either be an object or undefined.');\n}\n\nfunction getDroppableTargets(monitor) {\n var targetIds = monitor.getTargetIds().filter(monitor.canDropOnTarget, monitor);\n targetIds.reverse();\n return targetIds;\n}","import { invariant } from '@react-dnd/invariant';\nimport { END_DRAG } from './types';\nexport function createEndDrag(manager) {\n return function endDrag() {\n var monitor = manager.getMonitor();\n var registry = manager.getRegistry();\n verifyIsDragging(monitor);\n var sourceId = monitor.getSourceId();\n\n if (sourceId != null) {\n var source = registry.getSource(sourceId, true);\n source.endDrag(monitor, sourceId);\n registry.unpinSource();\n }\n\n return {\n type: END_DRAG\n };\n };\n}\n\nfunction verifyIsDragging(monitor) {\n invariant(monitor.isDragging(), 'Cannot call endDrag while not dragging.');\n}","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { createDragDropActions } from '../actions/dragDrop';\nexport var DragDropManagerImpl = /*#__PURE__*/function () {\n function DragDropManagerImpl(store, monitor) {\n var _this = this;\n\n _classCallCheck(this, DragDropManagerImpl);\n\n this.isSetUp = false;\n\n this.handleRefCountChange = function () {\n var shouldSetUp = _this.store.getState().refCount > 0;\n\n if (_this.backend) {\n if (shouldSetUp && !_this.isSetUp) {\n _this.backend.setup();\n\n _this.isSetUp = true;\n } else if (!shouldSetUp && _this.isSetUp) {\n _this.backend.teardown();\n\n _this.isSetUp = false;\n }\n }\n };\n\n this.store = store;\n this.monitor = monitor;\n store.subscribe(this.handleRefCountChange);\n }\n\n _createClass(DragDropManagerImpl, [{\n key: \"receiveBackend\",\n value: function receiveBackend(backend) {\n this.backend = backend;\n }\n }, {\n key: \"getMonitor\",\n value: function getMonitor() {\n return this.monitor;\n }\n }, {\n key: \"getBackend\",\n value: function getBackend() {\n return this.backend;\n }\n }, {\n key: \"getRegistry\",\n value: function getRegistry() {\n return this.monitor.registry;\n }\n }, {\n key: \"getActions\",\n value: function getActions() {\n /* eslint-disable-next-line @typescript-eslint/no-this-alias */\n var manager = this;\n var dispatch = this.store.dispatch;\n\n function bindActionCreator(actionCreator) {\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var action = actionCreator.apply(manager, args);\n\n if (typeof action !== 'undefined') {\n dispatch(action);\n }\n };\n }\n\n var actions = createDragDropActions(this);\n return Object.keys(actions).reduce(function (boundActions, key) {\n var action = actions[key];\n boundActions[key] = bindActionCreator(action);\n return boundActions;\n }, {});\n }\n }, {\n key: \"dispatch\",\n value: function dispatch(action) {\n this.store.dispatch(action);\n }\n }]);\n\n return DragDropManagerImpl;\n}();","import { createBeginDrag } from './beginDrag';\nimport { createPublishDragSource } from './publishDragSource';\nimport { createHover } from './hover';\nimport { createDrop } from './drop';\nimport { createEndDrag } from './endDrag';\nexport * from './types';\nexport function createDragDropActions(manager) {\n return {\n beginDrag: createBeginDrag(manager),\n publishDragSource: createPublishDragSource(manager),\n hover: createHover(manager),\n drop: createDrop(manager),\n endDrag: createEndDrag(manager)\n };\n}","import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';\n\n/**\n * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js\n *\n * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes\n * during build.\n * @param {number} code\n */\nfunction formatProdErrorMessage(code) {\n return \"Minified Redux error #\" + code + \"; visit https://redux.js.org/Errors?code=\" + code + \" for the full message or \" + 'use the non-minified dev environment for full errors. ';\n}\n\n// Inlined version of the `symbol-observable` polyfill\nvar $$observable = (function () {\n return typeof Symbol === 'function' && Symbol.observable || '@@observable';\n})();\n\n/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\nvar randomString = function randomString() {\n return Math.random().toString(36).substring(7).split('').join('.');\n};\n\nvar ActionTypes = {\n INIT: \"@@redux/INIT\" + randomString(),\n REPLACE: \"@@redux/REPLACE\" + randomString(),\n PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {\n return \"@@redux/PROBE_UNKNOWN_ACTION\" + randomString();\n }\n};\n\n/**\n * @param {any} obj The object to inspect.\n * @returns {boolean} True if the argument appears to be a plain object.\n */\nfunction isPlainObject(obj) {\n if (typeof obj !== 'object' || obj === null) return false;\n var proto = obj;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(obj) === proto;\n}\n\n// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of\nfunction miniKindOf(val) {\n if (val === void 0) return 'undefined';\n if (val === null) return 'null';\n var type = typeof val;\n\n switch (type) {\n case 'boolean':\n case 'string':\n case 'number':\n case 'symbol':\n case 'function':\n {\n return type;\n }\n }\n\n if (Array.isArray(val)) return 'array';\n if (isDate(val)) return 'date';\n if (isError(val)) return 'error';\n var constructorName = ctorName(val);\n\n switch (constructorName) {\n case 'Symbol':\n case 'Promise':\n case 'WeakMap':\n case 'WeakSet':\n case 'Map':\n case 'Set':\n return constructorName;\n } // other\n\n\n return type.slice(8, -1).toLowerCase().replace(/\\s/g, '');\n}\n\nfunction ctorName(val) {\n return typeof val.constructor === 'function' ? val.constructor.name : null;\n}\n\nfunction isError(val) {\n return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';\n}\n\nfunction isDate(val) {\n if (val instanceof Date) return true;\n return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';\n}\n\nfunction kindOf(val) {\n var typeOfVal = typeof val;\n\n if (process.env.NODE_ENV !== 'production') {\n typeOfVal = miniKindOf(val);\n }\n\n return typeOfVal;\n}\n\n/**\n * @deprecated\n *\n * **We recommend using the `configureStore` method\n * of the `@reduxjs/toolkit` package**, which replaces `createStore`.\n *\n * Redux Toolkit is our recommended approach for writing Redux logic today,\n * including store setup, reducers, data fetching, and more.\n *\n * **For more details, please read this Redux docs page:**\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * `configureStore` from Redux Toolkit is an improved version of `createStore` that\n * simplifies setup and helps avoid common bugs.\n *\n * You should not be using the `redux` core package by itself today, except for learning purposes.\n * The `createStore` method from the core `redux` package will not be removed, but we encourage\n * all users to migrate to using Redux Toolkit for all Redux code.\n *\n * If you want to use `createStore` without this visual deprecation warning, use\n * the `legacy_createStore` import instead:\n *\n * `import { legacy_createStore as createStore} from 'redux'`\n *\n */\n\nfunction createStore(reducer, preloadedState, enhancer) {\n var _ref2;\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(0) : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');\n }\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = preloadedState;\n preloadedState = undefined;\n }\n\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(1) : \"Expected the enhancer to be a function. Instead, received: '\" + kindOf(enhancer) + \"'\");\n }\n\n return enhancer(createStore)(reducer, preloadedState);\n }\n\n if (typeof reducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(2) : \"Expected the root reducer to be a function. Instead, received: '\" + kindOf(reducer) + \"'\");\n }\n\n var currentReducer = reducer;\n var currentState = preloadedState;\n var currentListeners = [];\n var nextListeners = currentListeners;\n var isDispatching = false;\n /**\n * This makes a shallow copy of currentListeners so we can use\n * nextListeners as a temporary list while dispatching.\n *\n * This prevents any bugs around consumers calling\n * subscribe/unsubscribe in the middle of a dispatch.\n */\n\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = currentListeners.slice();\n }\n }\n /**\n * Reads the state tree managed by the store.\n *\n * @returns {any} The current state tree of your application.\n */\n\n\n function getState() {\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(3) : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n\n return currentState;\n }\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param {Function} listener A callback to be invoked on every dispatch.\n * @returns {Function} A function to remove this change listener.\n */\n\n\n function subscribe(listener) {\n if (typeof listener !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(4) : \"Expected the listener to be a function. Instead, received: '\" + kindOf(listener) + \"'\");\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(5) : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n\n var isSubscribed = true;\n ensureCanMutateNextListeners();\n nextListeners.push(listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(6) : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n\n isSubscribed = false;\n ensureCanMutateNextListeners();\n var index = nextListeners.indexOf(listener);\n nextListeners.splice(index, 1);\n currentListeners = null;\n };\n }\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param {Object} action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns {Object} For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n\n\n function dispatch(action) {\n if (!isPlainObject(action)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(7) : \"Actions must be plain objects. Instead, the actual type was: '\" + kindOf(action) + \"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.\");\n }\n\n if (typeof action.type === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(8) : 'Actions may not have an undefined \"type\" property. You may have misspelled an action type string constant.');\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(9) : 'Reducers may not dispatch actions.');\n }\n\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n\n var listeners = currentListeners = nextListeners;\n\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n\n return action;\n }\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param {Function} nextReducer The reducer for the store to use instead.\n * @returns {void}\n */\n\n\n function replaceReducer(nextReducer) {\n if (typeof nextReducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(10) : \"Expected the nextReducer to be a function. Instead, received: '\" + kindOf(nextReducer));\n }\n\n currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.\n // Any reducers that existed in both the new and old rootReducer\n // will receive the previous state. This effectively populates\n // the new state tree with any relevant data from the old one.\n\n dispatch({\n type: ActionTypes.REPLACE\n });\n }\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns {observable} A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n\n\n function observable() {\n var _ref;\n\n var outerSubscribe = subscribe;\n return _ref = {\n /**\n * The minimal observable subscription method.\n * @param {Object} observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns {subscription} An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe: function subscribe(observer) {\n if (typeof observer !== 'object' || observer === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(11) : \"Expected the observer to be an object. Instead, received: '\" + kindOf(observer) + \"'\");\n }\n\n function observeState() {\n if (observer.next) {\n observer.next(getState());\n }\n }\n\n observeState();\n var unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe: unsubscribe\n };\n }\n }, _ref[$$observable] = function () {\n return this;\n }, _ref;\n } // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n\n\n dispatch({\n type: ActionTypes.INIT\n });\n return _ref2 = {\n dispatch: dispatch,\n subscribe: subscribe,\n getState: getState,\n replaceReducer: replaceReducer\n }, _ref2[$$observable] = observable, _ref2;\n}\n/**\n * Creates a Redux store that holds the state tree.\n *\n * **We recommend using `configureStore` from the\n * `@reduxjs/toolkit` package**, which replaces `createStore`:\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\n\nvar legacy_createStore = createStore;\n\n/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nfunction warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n\n\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n } catch (e) {} // eslint-disable-line no-empty\n\n}\n\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n var reducerKeys = Object.keys(reducers);\n var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';\n\n if (reducerKeys.length === 0) {\n return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';\n }\n\n if (!isPlainObject(inputState)) {\n return \"The \" + argumentName + \" has unexpected type of \\\"\" + kindOf(inputState) + \"\\\". Expected argument to be an object with the following \" + (\"keys: \\\"\" + reducerKeys.join('\", \"') + \"\\\"\");\n }\n\n var unexpectedKeys = Object.keys(inputState).filter(function (key) {\n return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];\n });\n unexpectedKeys.forEach(function (key) {\n unexpectedKeyCache[key] = true;\n });\n if (action && action.type === ActionTypes.REPLACE) return;\n\n if (unexpectedKeys.length > 0) {\n return \"Unexpected \" + (unexpectedKeys.length > 1 ? 'keys' : 'key') + \" \" + (\"\\\"\" + unexpectedKeys.join('\", \"') + \"\\\" found in \" + argumentName + \". \") + \"Expected to find one of the known reducer keys instead: \" + (\"\\\"\" + reducerKeys.join('\", \"') + \"\\\". Unexpected keys will be ignored.\");\n }\n}\n\nfunction assertReducerShape(reducers) {\n Object.keys(reducers).forEach(function (key) {\n var reducer = reducers[key];\n var initialState = reducer(undefined, {\n type: ActionTypes.INIT\n });\n\n if (typeof initialState === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(12) : \"The slice reducer for key \\\"\" + key + \"\\\" returned undefined during initialization. \" + \"If the state passed to the reducer is undefined, you must \" + \"explicitly return the initial state. The initial state may \" + \"not be undefined. If you don't want to set a value for this reducer, \" + \"you can use null instead of undefined.\");\n }\n\n if (typeof reducer(undefined, {\n type: ActionTypes.PROBE_UNKNOWN_ACTION()\n }) === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(13) : \"The slice reducer for key \\\"\" + key + \"\\\" returned undefined when probed with a random type. \" + (\"Don't try to handle '\" + ActionTypes.INIT + \"' or other actions in \\\"redux/*\\\" \") + \"namespace. They are considered private. Instead, you must return the \" + \"current state for any unknown actions, unless it is undefined, \" + \"in which case you must return the initial state, regardless of the \" + \"action type. The initial state may not be undefined, but can be null.\");\n }\n });\n}\n/**\n * Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * @param {Object} reducers An object whose values correspond to different\n * reducer functions that need to be combined into one. One handy way to obtain\n * it is to use ES6 `import * as reducers` syntax. The reducers may never return\n * undefined for any action. Instead, they should return their initial state\n * if the state passed to them was undefined, and the current state for any\n * unrecognized action.\n *\n * @returns {Function} A reducer function that invokes every reducer inside the\n * passed object, and builds a state object with the same shape.\n */\n\n\nfunction combineReducers(reducers) {\n var reducerKeys = Object.keys(reducers);\n var finalReducers = {};\n\n for (var i = 0; i < reducerKeys.length; i++) {\n var key = reducerKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof reducers[key] === 'undefined') {\n warning(\"No reducer provided for key \\\"\" + key + \"\\\"\");\n }\n }\n\n if (typeof reducers[key] === 'function') {\n finalReducers[key] = reducers[key];\n }\n }\n\n var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same\n // keys multiple times.\n\n var unexpectedKeyCache;\n\n if (process.env.NODE_ENV !== 'production') {\n unexpectedKeyCache = {};\n }\n\n var shapeAssertionError;\n\n try {\n assertReducerShape(finalReducers);\n } catch (e) {\n shapeAssertionError = e;\n }\n\n return function combination(state, action) {\n if (state === void 0) {\n state = {};\n }\n\n if (shapeAssertionError) {\n throw shapeAssertionError;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);\n\n if (warningMessage) {\n warning(warningMessage);\n }\n }\n\n var hasChanged = false;\n var nextState = {};\n\n for (var _i = 0; _i < finalReducerKeys.length; _i++) {\n var _key = finalReducerKeys[_i];\n var reducer = finalReducers[_key];\n var previousStateForKey = state[_key];\n var nextStateForKey = reducer(previousStateForKey, action);\n\n if (typeof nextStateForKey === 'undefined') {\n var actionType = action && action.type;\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(14) : \"When called with an action of type \" + (actionType ? \"\\\"\" + String(actionType) + \"\\\"\" : '(unknown type)') + \", the slice reducer for key \\\"\" + _key + \"\\\" returned undefined. \" + \"To ignore an action, you must explicitly return the previous state. \" + \"If you want this reducer to hold no value, you can return null instead of undefined.\");\n }\n\n nextState[_key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n\n hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;\n return hasChanged ? nextState : state;\n };\n}\n\nfunction bindActionCreator(actionCreator, dispatch) {\n return function () {\n return dispatch(actionCreator.apply(this, arguments));\n };\n}\n/**\n * Turns an object whose values are action creators, into an object with the\n * same keys, but with every function wrapped into a `dispatch` call so they\n * may be invoked directly. This is just a convenience method, as you can call\n * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.\n *\n * For convenience, you can also pass an action creator as the first argument,\n * and get a dispatch wrapped function in return.\n *\n * @param {Function|Object} actionCreators An object whose values are action\n * creator functions. One handy way to obtain it is to use ES6 `import * as`\n * syntax. You may also pass a single function.\n *\n * @param {Function} dispatch The `dispatch` function available on your Redux\n * store.\n *\n * @returns {Function|Object} The object mimicking the original object, but with\n * every action creator wrapped into the `dispatch` call. If you passed a\n * function as `actionCreators`, the return value will also be a single\n * function.\n */\n\n\nfunction bindActionCreators(actionCreators, dispatch) {\n if (typeof actionCreators === 'function') {\n return bindActionCreator(actionCreators, dispatch);\n }\n\n if (typeof actionCreators !== 'object' || actionCreators === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(16) : \"bindActionCreators expected an object or a function, but instead received: '\" + kindOf(actionCreators) + \"'. \" + \"Did you write \\\"import ActionCreators from\\\" instead of \\\"import * as ActionCreators from\\\"?\");\n }\n\n var boundActionCreators = {};\n\n for (var key in actionCreators) {\n var actionCreator = actionCreators[key];\n\n if (typeof actionCreator === 'function') {\n boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n }\n }\n\n return boundActionCreators;\n}\n\n/**\n * Composes single-argument functions from right to left. The rightmost\n * function can take multiple arguments as it provides the signature for\n * the resulting composite function.\n *\n * @param {...Function} funcs The functions to compose.\n * @returns {Function} A function obtained by composing the argument functions\n * from right to left. For example, compose(f, g, h) is identical to doing\n * (...args) => f(g(h(...args))).\n */\nfunction compose() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n if (funcs.length === 0) {\n return function (arg) {\n return arg;\n };\n }\n\n if (funcs.length === 1) {\n return funcs[0];\n }\n\n return funcs.reduce(function (a, b) {\n return function () {\n return a(b.apply(void 0, arguments));\n };\n });\n}\n\n/**\n * Creates a store enhancer that applies middleware to the dispatch method\n * of the Redux store. This is handy for a variety of tasks, such as expressing\n * asynchronous actions in a concise manner, or logging every action payload.\n *\n * See `redux-thunk` package as an example of the Redux middleware.\n *\n * Because middleware is potentially asynchronous, this should be the first\n * store enhancer in the composition chain.\n *\n * Note that each middleware will be given the `dispatch` and `getState` functions\n * as named arguments.\n *\n * @param {...Function} middlewares The middleware chain to be applied.\n * @returns {Function} A store enhancer applying the middleware.\n */\n\nfunction applyMiddleware() {\n for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {\n middlewares[_key] = arguments[_key];\n }\n\n return function (createStore) {\n return function () {\n var store = createStore.apply(void 0, arguments);\n\n var _dispatch = function dispatch() {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(15) : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');\n };\n\n var middlewareAPI = {\n getState: store.getState,\n dispatch: function dispatch() {\n return _dispatch.apply(void 0, arguments);\n }\n };\n var chain = middlewares.map(function (middleware) {\n return middleware(middlewareAPI);\n });\n _dispatch = compose.apply(void 0, chain)(store.dispatch);\n return _objectSpread(_objectSpread({}, store), {}, {\n dispatch: _dispatch\n });\n };\n };\n}\n\n/*\n * This is a dummy function to check if the function name has been altered by minification.\n * If the function has been minified and NODE_ENV !== 'production', warn the user.\n */\n\nfunction isCrushed() {}\n\nif (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {\n warning('You are currently using minified code outside of NODE_ENV === \"production\". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');\n}\n\nexport { ActionTypes as __DO_NOT_USE__ActionTypes, applyMiddleware, bindActionCreators, combineReducers, compose, createStore, legacy_createStore };\n","export var strictEquality = function strictEquality(a, b) {\n return a === b;\n};\n/**\n * Determine if two cartesian coordinate offsets are equal\n * @param offsetA\n * @param offsetB\n */\n\nexport function areCoordsEqual(offsetA, offsetB) {\n if (!offsetA && !offsetB) {\n return true;\n } else if (!offsetA || !offsetB) {\n return false;\n } else {\n return offsetA.x === offsetB.x && offsetA.y === offsetB.y;\n }\n}\n/**\n * Determines if two arrays of items are equal\n * @param a The first array of items\n * @param b The second array of items\n */\n\nexport function areArraysEqual(a, b) {\n var isEqual = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : strictEquality;\n\n if (a.length !== b.length) {\n return false;\n }\n\n for (var i = 0; i < a.length; ++i) {\n if (!isEqual(a[i], b[i])) {\n return false;\n }\n }\n\n return true;\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { INIT_COORDS, BEGIN_DRAG, HOVER, END_DRAG, DROP } from '../actions/dragDrop';\nimport { areCoordsEqual } from '../utils/equality';\nvar initialState = {\n initialSourceClientOffset: null,\n initialClientOffset: null,\n clientOffset: null\n};\nexport function reduce() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;\n var action = arguments.length > 1 ? arguments[1] : undefined;\n var payload = action.payload;\n\n switch (action.type) {\n case INIT_COORDS:\n case BEGIN_DRAG:\n return {\n initialSourceClientOffset: payload.sourceClientOffset,\n initialClientOffset: payload.clientOffset,\n clientOffset: payload.clientOffset\n };\n\n case HOVER:\n if (areCoordsEqual(state.clientOffset, payload.clientOffset)) {\n return state;\n }\n\n return _objectSpread(_objectSpread({}, state), {}, {\n clientOffset: payload.clientOffset\n });\n\n case END_DRAG:\n case DROP:\n return initialState;\n\n default:\n return state;\n }\n}","export var ADD_SOURCE = 'dnd-core/ADD_SOURCE';\nexport var ADD_TARGET = 'dnd-core/ADD_TARGET';\nexport var REMOVE_SOURCE = 'dnd-core/REMOVE_SOURCE';\nexport var REMOVE_TARGET = 'dnd-core/REMOVE_TARGET';\nexport function addSource(sourceId) {\n return {\n type: ADD_SOURCE,\n payload: {\n sourceId: sourceId\n }\n };\n}\nexport function addTarget(targetId) {\n return {\n type: ADD_TARGET,\n payload: {\n targetId: targetId\n }\n };\n}\nexport function removeSource(sourceId) {\n return {\n type: REMOVE_SOURCE,\n payload: {\n sourceId: sourceId\n }\n };\n}\nexport function removeTarget(targetId) {\n return {\n type: REMOVE_TARGET,\n payload: {\n targetId: targetId\n }\n };\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { BEGIN_DRAG, PUBLISH_DRAG_SOURCE, HOVER, END_DRAG, DROP } from '../actions/dragDrop';\nimport { REMOVE_TARGET } from '../actions/registry';\nimport { without } from '../utils/js_utils';\nvar initialState = {\n itemType: null,\n item: null,\n sourceId: null,\n targetIds: [],\n dropResult: null,\n didDrop: false,\n isSourcePublic: null\n};\nexport function reduce() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;\n var action = arguments.length > 1 ? arguments[1] : undefined;\n var payload = action.payload;\n\n switch (action.type) {\n case BEGIN_DRAG:\n return _objectSpread(_objectSpread({}, state), {}, {\n itemType: payload.itemType,\n item: payload.item,\n sourceId: payload.sourceId,\n isSourcePublic: payload.isSourcePublic,\n dropResult: null,\n didDrop: false\n });\n\n case PUBLISH_DRAG_SOURCE:\n return _objectSpread(_objectSpread({}, state), {}, {\n isSourcePublic: true\n });\n\n case HOVER:\n return _objectSpread(_objectSpread({}, state), {}, {\n targetIds: payload.targetIds\n });\n\n case REMOVE_TARGET:\n if (state.targetIds.indexOf(payload.targetId) === -1) {\n return state;\n }\n\n return _objectSpread(_objectSpread({}, state), {}, {\n targetIds: without(state.targetIds, payload.targetId)\n });\n\n case DROP:\n return _objectSpread(_objectSpread({}, state), {}, {\n dropResult: payload.dropResult,\n didDrop: true,\n targetIds: []\n });\n\n case END_DRAG:\n return _objectSpread(_objectSpread({}, state), {}, {\n itemType: null,\n item: null,\n sourceId: null,\n dropResult: null,\n didDrop: false,\n isSourcePublic: null,\n targetIds: []\n });\n\n default:\n return state;\n }\n}","import { ADD_SOURCE, ADD_TARGET, REMOVE_SOURCE, REMOVE_TARGET } from '../actions/registry';\nexport function reduce() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var action = arguments.length > 1 ? arguments[1] : undefined;\n\n switch (action.type) {\n case ADD_SOURCE:\n case ADD_TARGET:\n return state + 1;\n\n case REMOVE_SOURCE:\n case REMOVE_TARGET:\n return state - 1;\n\n default:\n return state;\n }\n}","import { intersection } from './js_utils';\nexport var NONE = [];\nexport var ALL = [];\nNONE.__IS_NONE__ = true;\nALL.__IS_ALL__ = true;\n/**\n * Determines if the given handler IDs are dirty or not.\n *\n * @param dirtyIds The set of dirty handler ids\n * @param handlerIds The set of handler ids to check\n */\n\nexport function areDirty(dirtyIds, handlerIds) {\n if (dirtyIds === NONE) {\n return false;\n }\n\n if (dirtyIds === ALL || typeof handlerIds === 'undefined') {\n return true;\n }\n\n var commonIds = intersection(handlerIds, dirtyIds);\n return commonIds.length > 0;\n}","import { BEGIN_DRAG, PUBLISH_DRAG_SOURCE, HOVER, END_DRAG, DROP } from '../actions/dragDrop';\nimport { ADD_SOURCE, ADD_TARGET, REMOVE_SOURCE, REMOVE_TARGET } from '../actions/registry';\nimport { areArraysEqual } from '../utils/equality';\nimport { NONE, ALL } from '../utils/dirtiness';\nimport { xor } from '../utils/js_utils';\nexport function reduce() {\n var _state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : NONE;\n\n var action = arguments.length > 1 ? arguments[1] : undefined;\n\n switch (action.type) {\n case HOVER:\n break;\n\n case ADD_SOURCE:\n case ADD_TARGET:\n case REMOVE_TARGET:\n case REMOVE_SOURCE:\n return NONE;\n\n case BEGIN_DRAG:\n case PUBLISH_DRAG_SOURCE:\n case END_DRAG:\n case DROP:\n default:\n return ALL;\n }\n\n var _action$payload = action.payload,\n _action$payload$targe = _action$payload.targetIds,\n targetIds = _action$payload$targe === void 0 ? [] : _action$payload$targe,\n _action$payload$prevT = _action$payload.prevTargetIds,\n prevTargetIds = _action$payload$prevT === void 0 ? [] : _action$payload$prevT;\n var result = xor(targetIds, prevTargetIds);\n var didChange = result.length > 0 || !areArraysEqual(targetIds, prevTargetIds);\n\n if (!didChange) {\n return NONE;\n } // Check the target ids at the innermost position. If they are valid, add them\n // to the result\n\n\n var prevInnermostTargetId = prevTargetIds[prevTargetIds.length - 1];\n var innermostTargetId = targetIds[targetIds.length - 1];\n\n if (prevInnermostTargetId !== innermostTargetId) {\n if (prevInnermostTargetId) {\n result.push(prevInnermostTargetId);\n }\n\n if (innermostTargetId) {\n result.push(innermostTargetId);\n }\n }\n\n return result;\n}","export function reduce() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n return state + 1;\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { reduce as dragOffset } from './dragOffset';\nimport { reduce as dragOperation } from './dragOperation';\nimport { reduce as refCount } from './refCount';\nimport { reduce as dirtyHandlerIds } from './dirtyHandlerIds';\nimport { reduce as stateId } from './stateId';\nimport { get } from '../utils/js_utils';\nexport function reduce() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var action = arguments.length > 1 ? arguments[1] : undefined;\n return {\n dirtyHandlerIds: dirtyHandlerIds(state.dirtyHandlerIds, {\n type: action.type,\n payload: _objectSpread(_objectSpread({}, action.payload), {}, {\n prevTargetIds: get(state, 'dragOperation.targetIds', [])\n })\n }),\n dragOffset: dragOffset(state.dragOffset, action),\n refCount: refCount(state.refCount, action),\n dragOperation: dragOperation(state.dragOperation, action),\n stateId: stateId(state.stateId)\n };\n}","/**\n * Coordinate addition\n * @param a The first coordinate\n * @param b The second coordinate\n */\nexport function add(a, b) {\n return {\n x: a.x + b.x,\n y: a.y + b.y\n };\n}\n/**\n * Coordinate subtraction\n * @param a The first coordinate\n * @param b The second coordinate\n */\n\nexport function subtract(a, b) {\n return {\n x: a.x - b.x,\n y: a.y - b.y\n };\n}\n/**\n * Returns the cartesian distance of the drag source component's position, based on its position\n * at the time when the current drag operation has started, and the movement difference.\n *\n * Returns null if no item is being dragged.\n *\n * @param state The offset state to compute from\n */\n\nexport function getSourceClientOffset(state) {\n var clientOffset = state.clientOffset,\n initialClientOffset = state.initialClientOffset,\n initialSourceClientOffset = state.initialSourceClientOffset;\n\n if (!clientOffset || !initialClientOffset || !initialSourceClientOffset) {\n return null;\n }\n\n return subtract(add(clientOffset, initialSourceClientOffset), initialClientOffset);\n}\n/**\n * Determines the x,y offset between the client offset and the initial client offset\n *\n * @param state The offset state to compute from\n */\n\nexport function getDifferenceFromInitialOffset(state) {\n var clientOffset = state.clientOffset,\n initialClientOffset = state.initialClientOffset;\n\n if (!clientOffset || !initialClientOffset) {\n return null;\n }\n\n return subtract(clientOffset, initialClientOffset);\n}","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { invariant } from '@react-dnd/invariant';\nimport { matchesType } from '../utils/matchesType';\nimport { getSourceClientOffset as _getSourceClientOffset, getDifferenceFromInitialOffset as _getDifferenceFromInitialOffset } from '../utils/coords';\nimport { areDirty } from '../utils/dirtiness';\nexport var DragDropMonitorImpl = /*#__PURE__*/function () {\n function DragDropMonitorImpl(store, registry) {\n _classCallCheck(this, DragDropMonitorImpl);\n\n this.store = store;\n this.registry = registry;\n }\n\n _createClass(DragDropMonitorImpl, [{\n key: \"subscribeToStateChange\",\n value: function subscribeToStateChange(listener) {\n var _this = this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n handlerIds: undefined\n };\n var handlerIds = options.handlerIds;\n invariant(typeof listener === 'function', 'listener must be a function.');\n invariant(typeof handlerIds === 'undefined' || Array.isArray(handlerIds), 'handlerIds, when specified, must be an array of strings.');\n var prevStateId = this.store.getState().stateId;\n\n var handleChange = function handleChange() {\n var state = _this.store.getState();\n\n var currentStateId = state.stateId;\n\n try {\n var canSkipListener = currentStateId === prevStateId || currentStateId === prevStateId + 1 && !areDirty(state.dirtyHandlerIds, handlerIds);\n\n if (!canSkipListener) {\n listener();\n }\n } finally {\n prevStateId = currentStateId;\n }\n };\n\n return this.store.subscribe(handleChange);\n }\n }, {\n key: \"subscribeToOffsetChange\",\n value: function subscribeToOffsetChange(listener) {\n var _this2 = this;\n\n invariant(typeof listener === 'function', 'listener must be a function.');\n var previousState = this.store.getState().dragOffset;\n\n var handleChange = function handleChange() {\n var nextState = _this2.store.getState().dragOffset;\n\n if (nextState === previousState) {\n return;\n }\n\n previousState = nextState;\n listener();\n };\n\n return this.store.subscribe(handleChange);\n }\n }, {\n key: \"canDragSource\",\n value: function canDragSource(sourceId) {\n if (!sourceId) {\n return false;\n }\n\n var source = this.registry.getSource(sourceId);\n invariant(source, \"Expected to find a valid source. sourceId=\".concat(sourceId));\n\n if (this.isDragging()) {\n return false;\n }\n\n return source.canDrag(this, sourceId);\n }\n }, {\n key: \"canDropOnTarget\",\n value: function canDropOnTarget(targetId) {\n // undefined on initial render\n if (!targetId) {\n return false;\n }\n\n var target = this.registry.getTarget(targetId);\n invariant(target, \"Expected to find a valid target. targetId=\".concat(targetId));\n\n if (!this.isDragging() || this.didDrop()) {\n return false;\n }\n\n var targetType = this.registry.getTargetType(targetId);\n var draggedItemType = this.getItemType();\n return matchesType(targetType, draggedItemType) && target.canDrop(this, targetId);\n }\n }, {\n key: \"isDragging\",\n value: function isDragging() {\n return Boolean(this.getItemType());\n }\n }, {\n key: \"isDraggingSource\",\n value: function isDraggingSource(sourceId) {\n // undefined on initial render\n if (!sourceId) {\n return false;\n }\n\n var source = this.registry.getSource(sourceId, true);\n invariant(source, \"Expected to find a valid source. sourceId=\".concat(sourceId));\n\n if (!this.isDragging() || !this.isSourcePublic()) {\n return false;\n }\n\n var sourceType = this.registry.getSourceType(sourceId);\n var draggedItemType = this.getItemType();\n\n if (sourceType !== draggedItemType) {\n return false;\n }\n\n return source.isDragging(this, sourceId);\n }\n }, {\n key: \"isOverTarget\",\n value: function isOverTarget(targetId) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n shallow: false\n };\n\n // undefined on initial render\n if (!targetId) {\n return false;\n }\n\n var shallow = options.shallow;\n\n if (!this.isDragging()) {\n return false;\n }\n\n var targetType = this.registry.getTargetType(targetId);\n var draggedItemType = this.getItemType();\n\n if (draggedItemType && !matchesType(targetType, draggedItemType)) {\n return false;\n }\n\n var targetIds = this.getTargetIds();\n\n if (!targetIds.length) {\n return false;\n }\n\n var index = targetIds.indexOf(targetId);\n\n if (shallow) {\n return index === targetIds.length - 1;\n } else {\n return index > -1;\n }\n }\n }, {\n key: \"getItemType\",\n value: function getItemType() {\n return this.store.getState().dragOperation.itemType;\n }\n }, {\n key: \"getItem\",\n value: function getItem() {\n return this.store.getState().dragOperation.item;\n }\n }, {\n key: \"getSourceId\",\n value: function getSourceId() {\n return this.store.getState().dragOperation.sourceId;\n }\n }, {\n key: \"getTargetIds\",\n value: function getTargetIds() {\n return this.store.getState().dragOperation.targetIds;\n }\n }, {\n key: \"getDropResult\",\n value: function getDropResult() {\n return this.store.getState().dragOperation.dropResult;\n }\n }, {\n key: \"didDrop\",\n value: function didDrop() {\n return this.store.getState().dragOperation.didDrop;\n }\n }, {\n key: \"isSourcePublic\",\n value: function isSourcePublic() {\n return Boolean(this.store.getState().dragOperation.isSourcePublic);\n }\n }, {\n key: \"getInitialClientOffset\",\n value: function getInitialClientOffset() {\n return this.store.getState().dragOffset.initialClientOffset;\n }\n }, {\n key: \"getInitialSourceClientOffset\",\n value: function getInitialSourceClientOffset() {\n return this.store.getState().dragOffset.initialSourceClientOffset;\n }\n }, {\n key: \"getClientOffset\",\n value: function getClientOffset() {\n return this.store.getState().dragOffset.clientOffset;\n }\n }, {\n key: \"getSourceClientOffset\",\n value: function getSourceClientOffset() {\n return _getSourceClientOffset(this.store.getState().dragOffset);\n }\n }, {\n key: \"getDifferenceFromInitialOffset\",\n value: function getDifferenceFromInitialOffset() {\n return _getDifferenceFromInitialOffset(this.store.getState().dragOffset);\n }\n }]);\n\n return DragDropMonitorImpl;\n}();","export var HandlerRole;\n\n(function (HandlerRole) {\n HandlerRole[\"SOURCE\"] = \"SOURCE\";\n HandlerRole[\"TARGET\"] = \"TARGET\";\n})(HandlerRole || (HandlerRole = {}));","var nextUniqueId = 0;\nexport function getNextUniqueId() {\n return nextUniqueId++;\n}","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport { invariant } from '@react-dnd/invariant';\nexport function validateSourceContract(source) {\n invariant(typeof source.canDrag === 'function', 'Expected canDrag to be a function.');\n invariant(typeof source.beginDrag === 'function', 'Expected beginDrag to be a function.');\n invariant(typeof source.endDrag === 'function', 'Expected endDrag to be a function.');\n}\nexport function validateTargetContract(target) {\n invariant(typeof target.canDrop === 'function', 'Expected canDrop to be a function.');\n invariant(typeof target.hover === 'function', 'Expected hover to be a function.');\n invariant(typeof target.drop === 'function', 'Expected beginDrag to be a function.');\n}\nexport function validateType(type, allowArray) {\n if (allowArray && Array.isArray(type)) {\n type.forEach(function (t) {\n return validateType(t, false);\n });\n return;\n }\n\n invariant(typeof type === 'string' || _typeof(type) === 'symbol', allowArray ? 'Type can only be a string, a symbol, or an array of either.' : 'Type can only be a string or a symbol.');\n}","// Safari 6 and 6.1 for desktop, iPad, and iPhone are the only browsers that\n// have WebKitMutationObserver but not un-prefixed MutationObserver.\n// Must use `global` or `self` instead of `window` to work in both frames and web\n// workers. `global` is a provision of Browserify, Mr, Mrs, or Mop.\n/* globals self */ const scope = typeof global !== 'undefined' ? global : self;\nconst BrowserMutationObserver = scope.MutationObserver || scope.WebKitMutationObserver;\nexport function makeRequestCallFromTimer(callback) {\n return function requestCall() {\n // We dispatch a timeout with a specified delay of 0 for engines that\n // can reliably accommodate that request. This will usually be snapped\n // to a 4 milisecond delay, but once we're flushing, there's no delay\n // between events.\n const timeoutHandle = setTimeout(handleTimer, 0);\n // However, since this timer gets frequently dropped in Firefox\n // workers, we enlist an interval handle that will try to fire\n // an event 20 times per second until it succeeds.\n const intervalHandle = setInterval(handleTimer, 50);\n function handleTimer() {\n // Whichever timer succeeds will cancel both timers and\n // execute the callback.\n clearTimeout(timeoutHandle);\n clearInterval(intervalHandle);\n callback();\n }\n };\n}\n// To request a high priority event, we induce a mutation observer by toggling\n// the text of a text node between \"1\" and \"-1\".\nexport function makeRequestCallFromMutationObserver(callback) {\n let toggle = 1;\n const observer = new BrowserMutationObserver(callback);\n const node = document.createTextNode('');\n observer.observe(node, {\n characterData: true\n });\n return function requestCall() {\n toggle = -toggle;\n node.data = toggle;\n };\n}\nexport const makeRequestCall = typeof BrowserMutationObserver === 'function' ? // reliably everywhere they are implemented.\n// They are implemented in all modern browsers.\n//\n// - Android 4-4.3\n// - Chrome 26-34\n// - Firefox 14-29\n// - Internet Explorer 11\n// - iPad Safari 6-7.1\n// - iPhone Safari 7-7.1\n// - Safari 6-7\nmakeRequestCallFromMutationObserver : // task queue, are implemented in Internet Explorer 10, Safari 5.0-1, and Opera\n// 11-12, and in web workers in many engines.\n// Although message channels yield to any queued rendering and IO tasks, they\n// would be better than imposing the 4ms delay of timers.\n// However, they do not work reliably in Internet Explorer or Safari.\n// Internet Explorer 10 is the only browser that has setImmediate but does\n// not have MutationObservers.\n// Although setImmediate yields to the browser's renderer, it would be\n// preferrable to falling back to setTimeout since it does not have\n// the minimum 4ms penalty.\n// Unfortunately there appears to be a bug in Internet Explorer 10 Mobile (and\n// Desktop to a lesser extent) that renders both setImmediate and\n// MessageChannel useless for the purposes of ASAP.\n// https://github.com/kriskowal/q/issues/396\n// Timers are implemented universally.\n// We fall back to timers in workers in most engines, and in foreground\n// contexts in the following browsers.\n// However, note that even this simple case requires nuances to operate in a\n// broad spectrum of browsers.\n//\n// - Firefox 3-13\n// - Internet Explorer 6-9\n// - iPad Safari 4.3\n// - Lynx 2.8.7\nmakeRequestCallFromTimer;\n\n//# sourceMappingURL=makeRequestCall.mjs.map","// `call`, just like a function.\nexport class RawTask {\n call() {\n try {\n this.task && this.task();\n } catch (error) {\n this.onError(error);\n } finally{\n this.task = null;\n this.release(this);\n }\n }\n constructor(onError, release){\n this.onError = onError;\n this.release = release;\n this.task = null;\n }\n}\n\n//# sourceMappingURL=RawTask.mjs.map","import { AsapQueue } from './AsapQueue.mjs';\nimport { TaskFactory } from './TaskFactory.mjs';\nconst asapQueue = new AsapQueue();\nconst taskFactory = new TaskFactory(asapQueue.registerPendingError);\n/**\n * Calls a task as soon as possible after returning, in its own event, with priority\n * over other events like animation, reflow, and repaint. An error thrown from an\n * event will not interrupt, nor even substantially slow down the processing of\n * other events, but will be rather postponed to a lower priority event.\n * @param {{call}} task A callable object, typically a function that takes no\n * arguments.\n */ export function asap(task) {\n asapQueue.enqueueTask(taskFactory.create(task));\n}\n\n//# sourceMappingURL=asap.mjs.map","import { makeRequestCall, makeRequestCallFromTimer } from './makeRequestCall.mjs';\nexport class AsapQueue {\n // Use the fastest means possible to execute a task in its own turn, with\n // priority over other events including IO, animation, reflow, and redraw\n // events in browsers.\n //\n // An exception thrown by a task will permanently interrupt the processing of\n // subsequent tasks. The higher level `asap` function ensures that if an\n // exception is thrown by a task, that the task queue will continue flushing as\n // soon as possible, but if you use `rawAsap` directly, you are responsible to\n // either ensure that no exceptions are thrown from your task, or to manually\n // call `rawAsap.requestFlush` if an exception is thrown.\n enqueueTask(task) {\n const { queue: q , requestFlush } = this;\n if (!q.length) {\n requestFlush();\n this.flushing = true;\n }\n // Equivalent to push, but avoids a function call.\n q[q.length] = task;\n }\n constructor(){\n this.queue = [];\n // We queue errors to ensure they are thrown in right order (FIFO).\n // Array-as-queue is good enough here, since we are just dealing with exceptions.\n this.pendingErrors = [];\n // Once a flush has been requested, no further calls to `requestFlush` are\n // necessary until the next `flush` completes.\n // @ts-ignore\n this.flushing = false;\n // The position of the next task to execute in the task queue. This is\n // preserved between calls to `flush` so that it can be resumed if\n // a task throws an exception.\n this.index = 0;\n // If a task schedules additional tasks recursively, the task queue can grow\n // unbounded. To prevent memory exhaustion, the task queue will periodically\n // truncate already-completed tasks.\n this.capacity = 1024;\n // The flush function processes all tasks that have been scheduled with\n // `rawAsap` unless and until one of those tasks throws an exception.\n // If a task throws an exception, `flush` ensures that its state will remain\n // consistent and will resume where it left off when called again.\n // However, `flush` does not make any arrangements to be called again if an\n // exception is thrown.\n this.flush = ()=>{\n const { queue: q } = this;\n while(this.index < q.length){\n const currentIndex = this.index;\n // Advance the index before calling the task. This ensures that we will\n // begin flushing on the next task the task throws an error.\n this.index++;\n q[currentIndex].call();\n // Prevent leaking memory for long chains of recursive calls to `asap`.\n // If we call `asap` within tasks scheduled by `asap`, the queue will\n // grow, but to avoid an O(n) walk for every task we execute, we don't\n // shift tasks off the queue after they have been executed.\n // Instead, we periodically shift 1024 tasks off the queue.\n if (this.index > this.capacity) {\n // Manually shift all values starting at the index back to the\n // beginning of the queue.\n for(let scan = 0, newLength = q.length - this.index; scan < newLength; scan++){\n q[scan] = q[scan + this.index];\n }\n q.length -= this.index;\n this.index = 0;\n }\n }\n q.length = 0;\n this.index = 0;\n this.flushing = false;\n };\n // In a web browser, exceptions are not fatal. However, to avoid\n // slowing down the queue of pending tasks, we rethrow the error in a\n // lower priority turn.\n this.registerPendingError = (err)=>{\n this.pendingErrors.push(err);\n this.requestErrorThrow();\n };\n // `requestFlush` requests that the high priority event queue be flushed as\n // soon as possible.\n // This is useful to prevent an error thrown in a task from stalling the event\n // queue if the exception handled by Node.js’s\n // `process.on(\"uncaughtException\")` or by a domain.\n // `requestFlush` is implemented using a strategy based on data collected from\n // every available SauceLabs Selenium web driver worker at time of writing.\n // https://docs.google.com/spreadsheets/d/1mG-5UYGup5qxGdEMWkhP6BWCz053NUb2E1QoUTU16uA/edit#gid=783724593\n this.requestFlush = makeRequestCall(this.flush);\n this.requestErrorThrow = makeRequestCallFromTimer(()=>{\n // Throw first error\n if (this.pendingErrors.length) {\n throw this.pendingErrors.shift();\n }\n });\n }\n} // The message channel technique was discovered by Malte Ubl and was the\n // original foundation for this library.\n // http://www.nonblocking.io/2011/06/windownexttick.html\n // Safari 6.0.5 (at least) intermittently fails to create message ports on a\n // page's first load. Thankfully, this version of Safari supports\n // MutationObservers, so we don't need to fall back in that case.\n // function makeRequestCallFromMessageChannel(callback) {\n // var channel = new MessageChannel();\n // channel.port1.onmessage = callback;\n // return function requestCall() {\n // channel.port2.postMessage(0);\n // };\n // }\n // For reasons explained above, we are also unable to use `setImmediate`\n // under any circumstances.\n // Even if we were, there is another bug in Internet Explorer 10.\n // It is not sufficient to assign `setImmediate` to `requestFlush` because\n // `setImmediate` must be called *by name* and therefore must be wrapped in a\n // closure.\n // Never forget.\n // function makeRequestCallFromSetImmediate(callback) {\n // return function requestCall() {\n // setImmediate(callback);\n // };\n // }\n // Safari 6.0 has a problem where timers will get lost while the user is\n // scrolling. This problem does not impact ASAP because Safari 6.0 supports\n // mutation observers, so that implementation is used instead.\n // However, if we ever elect to use timers in Safari, the prevalent work-around\n // is to add a scroll event listener that calls for a flush.\n // `setTimeout` does not call the passed callback if the delay is less than\n // approximately 7 in web workers in Firefox 8 through 18, and sometimes not\n // even then.\n // This is for `asap.js` only.\n // Its name will be periodically randomized to break any code that depends on\n // // its existence.\n // rawAsap.makeRequestCallFromTimer = makeRequestCallFromTimer\n // ASAP was originally a nextTick shim included in Q. This was factored out\n // into this ASAP package. It was later adapted to RSVP which made further\n // amendments. These decisions, particularly to marginalize MessageChannel and\n // to capture the MutationObserver implementation in a closure, were integrated\n // back into ASAP proper.\n // https://github.com/tildeio/rsvp.js/blob/cddf7232546a9cf858524b75cde6f9edf72620a7/lib/rsvp/asap.js\n\n//# sourceMappingURL=AsapQueue.mjs.map","import { RawTask } from './RawTask.mjs';\nexport class TaskFactory {\n create(task) {\n const tasks = this.freeTasks;\n const t1 = tasks.length ? tasks.pop() : new RawTask(this.onError, (t)=>tasks[tasks.length] = t\n );\n t1.task = task;\n return t1;\n }\n constructor(onError){\n this.onError = onError;\n this.freeTasks = [];\n }\n}\n\n//# sourceMappingURL=TaskFactory.mjs.map","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport { invariant } from '@react-dnd/invariant';\nimport { addSource as _addSource, addTarget as _addTarget, removeSource as _removeSource, removeTarget as _removeTarget } from '../actions/registry';\nimport { getNextUniqueId } from '../utils/getNextUniqueId';\nimport { HandlerRole } from '../interfaces';\nimport { validateSourceContract, validateTargetContract, validateType } from '../contracts';\nimport { asap } from '@react-dnd/asap';\n\nfunction getNextHandlerId(role) {\n var id = getNextUniqueId().toString();\n\n switch (role) {\n case HandlerRole.SOURCE:\n return \"S\".concat(id);\n\n case HandlerRole.TARGET:\n return \"T\".concat(id);\n\n default:\n throw new Error(\"Unknown Handler Role: \".concat(role));\n }\n}\n\nfunction parseRoleFromHandlerId(handlerId) {\n switch (handlerId[0]) {\n case 'S':\n return HandlerRole.SOURCE;\n\n case 'T':\n return HandlerRole.TARGET;\n\n default:\n invariant(false, \"Cannot parse handler ID: \".concat(handlerId));\n }\n}\n\nfunction mapContainsValue(map, searchValue) {\n var entries = map.entries();\n var isDone = false;\n\n do {\n var _entries$next = entries.next(),\n done = _entries$next.done,\n _entries$next$value = _slicedToArray(_entries$next.value, 2),\n value = _entries$next$value[1];\n\n if (value === searchValue) {\n return true;\n }\n\n isDone = !!done;\n } while (!isDone);\n\n return false;\n}\n\nexport var HandlerRegistryImpl = /*#__PURE__*/function () {\n function HandlerRegistryImpl(store) {\n _classCallCheck(this, HandlerRegistryImpl);\n\n this.types = new Map();\n this.dragSources = new Map();\n this.dropTargets = new Map();\n this.pinnedSourceId = null;\n this.pinnedSource = null;\n this.store = store;\n }\n\n _createClass(HandlerRegistryImpl, [{\n key: \"addSource\",\n value: function addSource(type, source) {\n validateType(type);\n validateSourceContract(source);\n var sourceId = this.addHandler(HandlerRole.SOURCE, type, source);\n this.store.dispatch(_addSource(sourceId));\n return sourceId;\n }\n }, {\n key: \"addTarget\",\n value: function addTarget(type, target) {\n validateType(type, true);\n validateTargetContract(target);\n var targetId = this.addHandler(HandlerRole.TARGET, type, target);\n this.store.dispatch(_addTarget(targetId));\n return targetId;\n }\n }, {\n key: \"containsHandler\",\n value: function containsHandler(handler) {\n return mapContainsValue(this.dragSources, handler) || mapContainsValue(this.dropTargets, handler);\n }\n }, {\n key: \"getSource\",\n value: function getSource(sourceId) {\n var includePinned = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n invariant(this.isSourceId(sourceId), 'Expected a valid source ID.');\n var isPinned = includePinned && sourceId === this.pinnedSourceId;\n var source = isPinned ? this.pinnedSource : this.dragSources.get(sourceId);\n return source;\n }\n }, {\n key: \"getTarget\",\n value: function getTarget(targetId) {\n invariant(this.isTargetId(targetId), 'Expected a valid target ID.');\n return this.dropTargets.get(targetId);\n }\n }, {\n key: \"getSourceType\",\n value: function getSourceType(sourceId) {\n invariant(this.isSourceId(sourceId), 'Expected a valid source ID.');\n return this.types.get(sourceId);\n }\n }, {\n key: \"getTargetType\",\n value: function getTargetType(targetId) {\n invariant(this.isTargetId(targetId), 'Expected a valid target ID.');\n return this.types.get(targetId);\n }\n }, {\n key: \"isSourceId\",\n value: function isSourceId(handlerId) {\n var role = parseRoleFromHandlerId(handlerId);\n return role === HandlerRole.SOURCE;\n }\n }, {\n key: \"isTargetId\",\n value: function isTargetId(handlerId) {\n var role = parseRoleFromHandlerId(handlerId);\n return role === HandlerRole.TARGET;\n }\n }, {\n key: \"removeSource\",\n value: function removeSource(sourceId) {\n var _this = this;\n\n invariant(this.getSource(sourceId), 'Expected an existing source.');\n this.store.dispatch(_removeSource(sourceId));\n asap(function () {\n _this.dragSources.delete(sourceId);\n\n _this.types.delete(sourceId);\n });\n }\n }, {\n key: \"removeTarget\",\n value: function removeTarget(targetId) {\n invariant(this.getTarget(targetId), 'Expected an existing target.');\n this.store.dispatch(_removeTarget(targetId));\n this.dropTargets.delete(targetId);\n this.types.delete(targetId);\n }\n }, {\n key: \"pinSource\",\n value: function pinSource(sourceId) {\n var source = this.getSource(sourceId);\n invariant(source, 'Expected an existing source.');\n this.pinnedSourceId = sourceId;\n this.pinnedSource = source;\n }\n }, {\n key: \"unpinSource\",\n value: function unpinSource() {\n invariant(this.pinnedSource, 'No source is pinned at the time.');\n this.pinnedSourceId = null;\n this.pinnedSource = null;\n }\n }, {\n key: \"addHandler\",\n value: function addHandler(role, type, handler) {\n var id = getNextHandlerId(role);\n this.types.set(id, type);\n\n if (role === HandlerRole.SOURCE) {\n this.dragSources.set(id, handler);\n } else if (role === HandlerRole.TARGET) {\n this.dropTargets.set(id, handler);\n }\n\n return id;\n }\n }]);\n\n return HandlerRegistryImpl;\n}();","import { DragDropManagerImpl } from './classes/DragDropManagerImpl';\nimport { createStore } from 'redux';\nimport { reduce } from './reducers';\nimport { DragDropMonitorImpl } from './classes/DragDropMonitorImpl';\nimport { HandlerRegistryImpl } from './classes/HandlerRegistryImpl';\nexport function createDragDropManager(backendFactory) {\n var globalContext = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n var backendOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var debugMode = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var store = makeStoreInstance(debugMode);\n var monitor = new DragDropMonitorImpl(store, new HandlerRegistryImpl(store));\n var manager = new DragDropManagerImpl(store, monitor);\n var backend = backendFactory(manager, globalContext, backendOptions);\n manager.receiveBackend(backend);\n return manager;\n}\n\nfunction makeStoreInstance(debugMode) {\n // TODO: if we ever make a react-native version of this,\n // we'll need to consider how to pull off dev-tooling\n var reduxDevTools = typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__;\n return createStore(reduce, debugMode && reduxDevTools && reduxDevTools({\n name: 'dnd-core',\n instanceId: 'dnd-core'\n }));\n}","var _excluded = [\"children\"];\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useEffect, memo } from 'react';\nimport { createDragDropManager } from 'dnd-core';\nimport { DndContext } from './DndContext';\nvar refCount = 0;\nvar INSTANCE_SYM = Symbol.for('__REACT_DND_CONTEXT_INSTANCE__');\n/**\n * A React component that provides the React-DnD context\n */\n\nexport var DndProvider = memo(function DndProvider(_ref) {\n var children = _ref.children,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var _getDndContextValue = getDndContextValue(props),\n _getDndContextValue2 = _slicedToArray(_getDndContextValue, 2),\n manager = _getDndContextValue2[0],\n isGlobalInstance = _getDndContextValue2[1]; // memoized from props\n\n /**\n * If the global context was used to store the DND context\n * then where theres no more references to it we should\n * clean it up to avoid memory leaks\n */\n\n\n useEffect(function () {\n if (isGlobalInstance) {\n var context = getGlobalContext();\n ++refCount;\n return function () {\n if (--refCount === 0) {\n context[INSTANCE_SYM] = null;\n }\n };\n }\n }, []);\n return _jsx(DndContext.Provider, Object.assign({\n value: manager\n }, {\n children: children\n }), void 0);\n});\n\nfunction getDndContextValue(props) {\n if ('manager' in props) {\n var _manager = {\n dragDropManager: props.manager\n };\n return [_manager, false];\n }\n\n var manager = createSingletonDndContext(props.backend, props.context, props.options, props.debugMode);\n var isGlobalInstance = !props.context;\n return [manager, isGlobalInstance];\n}\n\nfunction createSingletonDndContext(backend) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getGlobalContext();\n var options = arguments.length > 2 ? arguments[2] : undefined;\n var debugMode = arguments.length > 3 ? arguments[3] : undefined;\n var ctx = context;\n\n if (!ctx[INSTANCE_SYM]) {\n ctx[INSTANCE_SYM] = {\n dragDropManager: createDragDropManager(backend, context, options, debugMode)\n };\n }\n\n return ctx[INSTANCE_SYM];\n}\n\nfunction getGlobalContext() {\n return typeof global !== 'undefined' ? global : window;\n}","import { t } from \"../i18n\";\nimport React, { useState, useEffect, useRef, useMemo } from \"react\";\nimport { DndProvider } from \"react-dnd\";\nimport { DndBackend } from \"./DndBackend\";\n\nimport Editor from \"../Editor\";\nimport Block from \"../Block\";\nimport BlockItem from \"./BlockItem\";\nimport {\n EditorContext,\n BlocksContext,\n EditorContextProps,\n BlocksContextProps,\n} from \"../Context\";\nimport AddButton from \"./AddButton\";\nimport { getBlocksByRange, isPassThroughNativeEvent } from \"../util\";\nimport { BlockEditorCommandEvent } from \"../CommandManager\";\n\ndeclare global {\n interface WindowEventMap {\n \"mt-block-editor-command\": BlockEditorCommandEvent;\n \"mt-block-editor-click-block\": CustomEvent;\n }\n}\n\ninterface AppProps {\n editor: Editor;\n}\n\nfunction arrayEquals(a: T[], b: T[]): boolean {\n if (a === b) {\n return true;\n }\n\n if (a.length !== b.length) {\n return false;\n }\n\n for (let i = 0, len = a.length; i < len; i++) {\n if (a[i] !== b[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nconst App: React.FC = ({ editor }: AppProps) => {\n const [_focusedIds, _setFocusedIds] = useState([]);\n const focusedIdsRef = useRef(_focusedIds);\n\n const editorContext = useMemo(\n () => ({\n editor: editor,\n setFocusedIds: (ids, opts?) => {\n const focusedIds = focusedIdsRef.current;\n if (\n focusedIds.length >= 2 &&\n ids.length === 1 &&\n focusedIds.includes(ids[0])\n ) {\n // do nothing\n return;\n }\n\n if (!opts?.forceUpdate && arrayEquals(focusedIds, ids)) {\n return;\n }\n\n focusedIdsRef.current = ids;\n _setFocusedIds(ids);\n },\n getFocusedIds: () => focusedIdsRef.current,\n }),\n []\n );\n const setFocusedIds = editorContext.setFocusedIds;\n\n const blocksContext = useMemo(\n () => ({\n panelBlockTypes: null,\n shortcutBlockTypes: null,\n addBlock: (b: Block, index: number | Block) => {\n if (index instanceof Block) {\n index = editor.blocks.indexOf(index) + 1;\n }\n editor.addBlock(editor, b, index);\n setFocusedIds([b.id]);\n },\n mergeBlock: (b: Block) => {\n const index = editor.blocks.indexOf(b);\n if (editor.mergeBlock(editor, b)) {\n setFocusedIds([editor.blocks[index - 1].id]);\n }\n },\n removeBlock: (b: Block) => {\n const index = editor.blocks.indexOf(b);\n editor.removeBlock(editor, b);\n if (index > 0) {\n setFocusedIds([editor.blocks[index - 1].id]);\n }\n },\n swapBlocks: (dragIndex: number, hoverIndex: number, scroll?: boolean) => {\n if (\n dragIndex === undefined ||\n hoverIndex === undefined ||\n !editor.blocks[dragIndex] ||\n !editor.blocks[hoverIndex]\n ) {\n return;\n }\n\n if (scroll) {\n const destEl = editor.blocks[hoverIndex].wrapperRef.current;\n if (!destEl) {\n return;\n }\n\n const rect = destEl.getBoundingClientRect();\n const scrollTop =\n window.pageYOffset || document.documentElement.scrollTop;\n const offsetTop = rect.height;\n\n window.scrollTo({\n top: scrollTop + (dragIndex > hoverIndex ? -offsetTop : offsetTop),\n behavior: \"smooth\",\n });\n }\n\n editor.swapBlocks(editor, dragIndex, hoverIndex);\n },\n }),\n []\n );\n\n useEffect(() => {\n const onWindowClick = (ev: Event): void => {\n if (\n document.querySelector(\".mt-be-overlay\") ||\n document.body.classList.contains(\"modal-open\")\n ) {\n return;\n }\n\n const editorEl = editor.editorElement;\n\n if (editorEl.querySelector(`[data-mt-block-editor-keep-focus=\"1\"]`)) {\n return;\n }\n\n let target = ev.target as HTMLElement;\n if (target.closest(\".mce-container, .modal\")) {\n return;\n }\n\n while (target.parentNode && target.parentNode !== target) {\n if (target === editorEl) {\n if (focusedIdsRef.current.length === 0) {\n setFocusedIds([\"editor\"]);\n }\n return;\n }\n target = target.parentNode as HTMLElement;\n }\n\n setFocusedIds([]);\n };\n\n const onWindowKeydown = (ev: KeyboardEvent): void => {\n const editorEl = editor.editorElement;\n const focusedIds = focusedIdsRef.current;\n\n if (focusedIds.length === 0) {\n return;\n }\n\n if (!(ev.ctrlKey || ev.metaKey || ev.altKey || ev.shiftKey)) {\n return;\n }\n\n // stay focused but not edit\n if (\n isPassThroughNativeEvent(ev) ||\n editorEl.querySelector(`[data-mt-block-editor-keep-focus=\"1\"]`)\n ) {\n return;\n }\n\n const key = ev.key;\n\n if (key === \"z\" && (ev.ctrlKey || ev.metaKey) && !ev.shiftKey) {\n ev.preventDefault();\n ev.stopPropagation();\n ev.stopImmediatePropagation();\n editor.editManager.undo({\n editor,\n getFocusedIds: () => focusedIds,\n setFocusedIds,\n });\n } else if (\n (key === \"z\" && (ev.ctrlKey || ev.metaKey) && ev.shiftKey) ||\n (key === \"y\" && (ev.ctrlKey || ev.metaKey))\n ) {\n ev.preventDefault();\n ev.stopPropagation();\n ev.stopImmediatePropagation();\n editor.editManager.redo({\n editor,\n getFocusedIds: () => focusedIds,\n setFocusedIds,\n });\n }\n };\n\n let startId = \"\";\n const onEditorMousedown = (ev: MouseEvent): void => {\n if (ev.target instanceof HTMLElement) {\n startId =\n ev.target.closest(\"[data-mt-block-editor-block-id]\")\n ?.dataset.mtBlockEditorBlockId || \"\";\n }\n };\n\n const onEditorMouseup = (ev: MouseEvent): void => {\n if (ev.target instanceof HTMLElement) {\n const endId =\n ev.target.closest(\"[data-mt-block-editor-block-id]\")\n ?.dataset.mtBlockEditorBlockId || \"\";\n if (startId && endId && startId !== endId) {\n setFocusedIds(\n getBlocksByRange(editor, [startId, endId]).map((b) => b.id)\n );\n\n ev.preventDefault();\n ev.stopPropagation();\n }\n }\n\n startId = \"\";\n };\n\n const onBlockEditorCommand = (ev: BlockEditorCommandEvent): void => {\n editor.commandManager.execute({\n ...ev.detail,\n event: ev,\n });\n };\n\n editor.editorElement.addEventListener(\"mousedown\", onEditorMousedown);\n editor.editorElement.addEventListener(\"mouseup\", onEditorMouseup);\n\n window.addEventListener(\"click\", onWindowClick, {\n capture: true,\n passive: true,\n });\n\n window.addEventListener(\"keydown\", onWindowKeydown);\n window.addEventListener(\"mt-block-editor-command\", onBlockEditorCommand);\n\n return () => {\n editor.editorElement.removeEventListener(\"mousedown\", onEditorMousedown);\n editor.editorElement.removeEventListener(\"mouseup\", onEditorMouseup);\n window.removeEventListener(\"click\", onWindowClick, {\n capture: true,\n });\n window.removeEventListener(\"keydown\", onWindowKeydown);\n window.removeEventListener(\n \"mt-block-editor-command\",\n onBlockEditorCommand\n );\n };\n }, []);\n\n return (\n \n \n \n
\n {editor.blocks.map((b, i) => {\n return (\n \n );\n })}\n {editor.opts.addButtons[\"bottom\"] && (\n
\n \n
\n )}\n
\n
\n
\n
\n );\n};\n\nexport default App;\n","import Block from \"./Block\";\n\nclass BlockFactory {\n public static allTypes: Array = [];\n\n public static registerType(t: typeof Block): void {\n this.allTypes.push(t);\n }\n\n public static deregisterType(t: typeof Block | string): void {\n this.allTypes = this.allTypes.filter((registered) =>\n typeof t === \"string\" ? registered.typeId === t : registered !== t\n );\n }\n\n public types(): Array {\n return BlockFactory.allTypes;\n }\n\n public selectableTypes(): Array {\n return BlockFactory.allTypes.filter((t) => t.selectable);\n }\n\n public lookupType(typeId: string): typeof Block {\n const t = BlockFactory.allTypes.find((t) => t.typeId === typeId);\n\n if (!t) {\n throw `Unknown typeId: ${typeId}`;\n }\n\n return t;\n }\n}\n\nexport default BlockFactory;\n","import Editor from \"./Editor\";\nimport Block from \"./Block\";\nimport { EditorContextProps } from \"./Context\";\n\nconst DEFAULT_LIMIT = 100;\nconst NO_GROUP = undefined;\n\nexport interface EditHistoryHandlers {\n id: symbol;\n merge?: (a: EditHistory, b: EditHistory) => EditHistory | undefined | null;\n undo: (history: EditHistory, props: EditorContextProps) => void;\n redo: (history: EditHistory, props: EditorContextProps) => void;\n}\n\nexport interface EditHistory {\n block: Block;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data: any;\n group?: number | undefined;\n handlers: EditHistoryHandlers;\n}\n\nclass EditManager {\n private editor: Editor | null = null;\n private limit = DEFAULT_LIMIT;\n private index = 0;\n private ignore = false;\n private histories: EditHistory[] = [];\n private group: number | undefined = NO_GROUP;\n\n public constructor(init: {\n editor: EditManager[\"editor\"];\n limit?: EditManager[\"limit\"];\n }) {\n Object.assign(this, init);\n }\n\n public unload(): void {\n this.editor = null;\n this.histories = [];\n }\n\n public canUndo(): boolean {\n return this.histories.length !== 0 && this.histories.length > this.index;\n }\n\n public canRedo(): boolean {\n return this.index !== 0;\n }\n\n public add(history: EditHistory): void {\n if (this.ignore) {\n return;\n }\n\n this._add(history);\n\n if (this.group === NO_GROUP) {\n this.emitChange();\n }\n }\n\n private _add(history: EditHistory): void {\n if (this.index !== 0) {\n this.histories.splice(-this.index, this.index);\n }\n this.index = 0;\n\n if (this.group !== NO_GROUP && !history.group) {\n history.group = this.group;\n }\n\n if (history.handlers.merge) {\n const last = this.histories[this.histories.length - 1];\n if (\n last &&\n last.group === history.group &&\n last.handlers.id === history.handlers.id\n ) {\n const merged = history.handlers.merge.call(undefined, last, history);\n if (merged) {\n this.histories[this.histories.length - 1] = merged;\n return;\n }\n }\n }\n\n this.histories.push(history);\n\n if (this.histories.length > this.limit) {\n const count = this.histories.length - this.limit;\n this.histories.splice(0, count);\n }\n }\n\n public undo(props: EditorContextProps, group?: number): void {\n const history = this.histories[this.histories.length - this.index - 1];\n if (!history || (group !== undefined && group !== history.group)) {\n if (group !== undefined) {\n this.emitChange();\n }\n return;\n }\n\n this.index++;\n\n this.ignore = true;\n history.handlers.undo.call(undefined, history, props);\n this.ignore = false;\n\n if (history.group === NO_GROUP) {\n this.emitChange();\n } else {\n this.undo(props, history.group);\n }\n }\n\n public redo(props: EditorContextProps, group?: number): void {\n const history = this.histories[this.histories.length - this.index];\n if (!history || (group !== undefined && group !== history.group)) {\n if (group !== undefined) {\n this.emitChange();\n }\n return;\n }\n\n this.index--;\n this.ignore = true;\n history.handlers.redo.call(undefined, history, props);\n this.ignore = false;\n\n if (history.group === NO_GROUP) {\n this.emitChange();\n } else {\n this.redo(props, history.group);\n }\n }\n\n public generateGroup(): number {\n return Math.round(Math.random() * 100000);\n }\n\n public beginGrouping(): void {\n this.group = this.generateGroup();\n }\n\n public endGrouping(): void {\n if (this.group === NO_GROUP) {\n return;\n }\n\n const last = this.histories[this.histories.length - 1];\n if (last && last.group === this.group) {\n this.emitChange();\n }\n\n this.group = NO_GROUP;\n }\n\n private emitChange(): void {\n if (this.editor) {\n this.editor.emit(\"change\", { editor: this.editor });\n }\n }\n}\n\nexport default EditManager;\n","import { EditHistoryHandlers } from \"../EditManager\";\nimport Block from \"../Block\";\n\nexport const add: EditHistoryHandlers = {\n id: Symbol(\"add\"),\n undo(hist, { editor, setFocusedIds }) {\n const parent = hist.data.parent || editor;\n const index = parent.blocks.indexOf(hist.block);\n editor.removeBlock(parent, hist.block);\n\n const nextFocusBlock =\n parent.blocks[Math.max(0, index - 1)] ||\n (parent instanceof Block ? parent : null);\n\n setFocusedIds([nextFocusBlock?.id ?? \"editor\"]);\n },\n redo(hist, { editor, setFocusedIds }) {\n const parent = hist.data.parent || editor;\n editor.addBlock(parent, hist.block, hist.data.index);\n setFocusedIds([hist.block.id]);\n\n // You need to force a re-render to see the block\n if (parent.blocks.length === 1) {\n editor.render();\n }\n },\n};\n\nexport const remove: EditHistoryHandlers = {\n id: Symbol(\"remove\"),\n undo(hist, { editor, setFocusedIds }) {\n editor.addBlock(hist.data.parent || editor, hist.block, hist.data.index);\n setFocusedIds([hist.block.id], { forceUpdate: true });\n },\n redo(hist, { editor, setFocusedIds }) {\n const parent = hist.data.parent || editor;\n const index = parent.blocks.indexOf(hist.block);\n editor.removeBlock(parent, hist.block);\n if (index > 0) {\n setFocusedIds([parent.blocks[index - 1].id]);\n }\n },\n};\n\nexport const swap: EditHistoryHandlers = {\n id: Symbol(\"swap\"),\n undo(hist, { editor }) {\n editor.swapBlocks(hist.data.parent || editor, hist.data.a, hist.data.b);\n },\n redo(hist, { editor }) {\n editor.swapBlocks(hist.data.parent || editor, hist.data.a, hist.data.b);\n },\n};\n","import React, { ReactNode, useEffect, useState } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { CSSTransition } from \"react-transition-group\";\n\nconst OVERLAY_CLASS_NAME = \"mt-be-overlay\";\nconst PORTAL_STYLE = { position: \"relative\", zIndex: 1000 };\nexport const TRANSITION_TIMEOUT = 300;\n\ninterface OverlayProps {\n open: boolean;\n onClose?: () => void;\n children?: ReactNode;\n}\n\nconst Overlay: React.FC = ({\n open,\n onClose = () => null,\n children,\n}: OverlayProps) => {\n const [portal] = useState(() =>\n document.createElement(\"div\")\n );\n\n useEffect(() => {\n Object.assign(portal.style, PORTAL_STYLE);\n portal.classList.add(\"mt-block-editor\");\n document.body.appendChild(portal);\n return () => portal.remove();\n }, []);\n\n useEffect(() => {\n if (!open) {\n return;\n }\n\n function onKeydown(ev: KeyboardEvent): void {\n if (ev.key === \"Escape\") {\n onClose();\n }\n }\n\n document.addEventListener(\"keydown\", onKeydown);\n return () => document.removeEventListener(\"keydown\", onKeydown);\n }, [open]);\n\n return createPortal(\n \n document.body.classList.add(\"mt-block-editor-overlay-open\")\n }\n onExit={() =>\n document.body.classList.remove(\"mt-block-editor-overlay-open\")\n }\n classNames={OVERLAY_CLASS_NAME}\n unmountOnExit\n timeout={TRANSITION_TIMEOUT}\n >\n
{children}
\n ,\n portal\n );\n};\n\nexport default Overlay;\n","import { t } from \"../i18n\";\nimport React, {\n ReactNode,\n useRef,\n useEffect,\n createContext,\n useContext,\n} from \"react\";\nimport Overlay, { TRANSITION_TIMEOUT } from \"./Overlay\";\n\nexport interface DialogProps {\n children?: ReactNode;\n open: boolean;\n onClose?: () => void;\n id?: string;\n className?: string;\n}\ntype DialogContextProps = Pick;\n\nconst DialogContext = createContext({});\nexport const Dialog: React.FC = (props: DialogProps) => {\n const modalRef = useRef(null);\n const className = `mt-be-dialog ${props.className || \"\"}`;\n\n useEffect(() => {\n if (!props.open) {\n return;\n }\n\n const modalEl = modalRef.current;\n if (!modalEl) {\n return;\n }\n\n const focusEl = modalEl.querySelector(\n `[data-mt-block-editor-focus-default]`\n );\n if (!focusEl) {\n return;\n }\n\n setTimeout(() => {\n focusEl.focus();\n }, TRANSITION_TIMEOUT);\n }, [props.open]);\n\n return (\n \n \n
\n
{props.children}
\n
\n
\n
\n );\n};\n\nexport const DialogHeader: React.FC = (props: { children?: ReactNode }) => {\n const { onClose = () => null } = useContext(DialogContext);\n return (\n
\n {props.children}\n \n ×\n \n
\n );\n};\n\nexport const DialogBody: React.FC = (props: { children?: ReactNode }) => (\n
{props.children}
\n);\n\nexport const DialogFooter: React.FC = (props: { children?: ReactNode }) => (\n
{props.children}
\n);\n\nexport default Dialog;\n","import { t } from \"../i18n\";\nimport React, { useState, useRef } from \"react\";\nimport Block, { NewFromHtmlOptions, EditorOptions } from \"../Block\";\nimport { nl2br } from \"../util\";\nimport { blockProperty } from \"../decorator\";\nimport icon from \"../img/icon/image.svg\";\nimport iconLink from \"../img/icon/link.svg\";\nimport BlockSetupCommon from \"../Component/BlockSetupCommon\";\nimport BlockLabel from \"../Component/BlockLabel\";\nimport BlockToolbar from \"../Component/BlockToolbar\";\nimport BlockToolbarButton from \"../Component/BlockToolbarButton\";\nimport {\n Dialog,\n DialogHeader,\n DialogBody,\n DialogFooter,\n} from \"../Component/Dialog\";\nimport { useCommands } from \"../CommandManager\";\n\ninterface EditorProps {\n block: Image;\n}\n\nconst Html: React.FC = ({ block }: EditorProps) => {\n let img = {block.alt};\n if (block.linkUrl) {\n img = (\n \n {img}\n
\n );\n }\n\n return block.caption ? (\n
\n {img}\n
{nl2br(block.caption)}
\n
\n ) : (\n

{img}

\n );\n};\n\nconst Editor: React.FC = blockProperty(\n ({ block }: EditorProps) => {\n const [isLinkDialogOpen, setLinkDialogOpen] = useState(false);\n const formRef = useRef(null);\n\n useCommands(\n {\n block,\n commands: [\n {\n command: \"core-insertLink\",\n callback: () => {\n setLinkDialogOpen(true);\n },\n },\n ],\n },\n []\n );\n\n return (\n <>\n \n setLinkDialogOpen(true)}\n />\n \n setLinkDialogOpen(false)}\n >\n \n

{t(\"Insert Link\")}

\n
\n
\n \n \n \n \n \n\n \n {\n setLinkDialogOpen(false);\n }}\n >\n {t(\"Close\")}\n \n {\n const form = formRef.current;\n if (!form) {\n return;\n }\n\n const keys = [\"linkUrl\", \"linkTitle\", \"linkTarget\"] as const;\n keys.forEach((name) => {\n block[name] =\n form.querySelector(\n `[data-property-name=\"${name}\"]`\n )?.value || \"\";\n });\n\n setLinkDialogOpen(false);\n }}\n >\n {t(\"Save\")}\n \n \n
\n \n \n \n \n \n \n \n \n \n );\n }\n);\n\nclass Image extends Block {\n public static typeId = \"core-image\";\n public static selectable = true;\n public static icon = icon;\n public static get label(): string {\n return t(\"Image\");\n }\n\n public url = \"\";\n public alt = \"\";\n public caption = \"\";\n public linkUrl = \"\";\n public linkTarget = \"_self\";\n public linkTitle = \"\";\n\n public constructor(init?: Partial) {\n super();\n if (init) {\n Object.assign(this, init);\n }\n }\n\n public editor({ focus, focusBlock }: EditorOptions): JSX.Element {\n return focus || focusBlock ? (\n \n ) : (\n this.html()\n );\n }\n\n public html(): JSX.Element {\n return ;\n }\n\n public static canNewFromFile(): boolean {\n return true;\n }\n\n public static async newFromFile({ file }: { file: File }): Promise {\n return new Image({\n url: URL.createObjectURL(file),\n });\n }\n\n public static async newFromHtml({\n html,\n meta,\n }: NewFromHtmlOptions): Promise {\n const domparser = new DOMParser();\n const doc = domparser.parseFromString(html, \"text/html\");\n\n return new Image(\n Object.assign(\n {\n url: (doc.querySelector(\"IMG\") as HTMLImageElement).src || \"\",\n className:\n (doc.querySelector(\"IMG\") as HTMLImageElement).className || \"\",\n alt: (doc.querySelector(\"IMG\") as HTMLImageElement).alt || \"\",\n caption:\n (doc.querySelector(\"FIGCAPTION\") &&\n (\n doc.querySelector(\"FIGCAPTION\") as HTMLElement\n ).innerHTML.replace(/]*>/g, \"\\n\")) ||\n \"\",\n },\n meta\n )\n );\n }\n}\n\nexport default Image;\n","import { t } from \"../i18n\";\nimport React from \"react\";\nimport Block, { NewFromHtmlOptions, EditorOptions } from \"../Block\";\nimport { sanitize } from \"../util\";\nimport { blockProperty } from \"../decorator\";\nimport icon from \"../img/icon/file.svg\";\nimport BlockSetupCommon from \"../Component/BlockSetupCommon\";\nimport BlockLabel from \"../Component/BlockLabel\";\n\ninterface HtmlProps {\n block: File;\n}\ninterface EditorProps extends EditorOptions {\n block: File;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst Editor: React.FC = blockProperty(\n ({ block }: EditorProps) => (\n
\n \n \n \n \n \n
\n )\n);\n\nconst Html: React.FC = ({ block }: HtmlProps) => (\n <>\n {block.text}\n \n);\n\nclass File extends Block {\n public static typeId = \"core-file\";\n public static selectable = true;\n public static icon = icon;\n public static get label(): string {\n return t(\"File\");\n }\n\n public text = \"\";\n public url = \"\";\n\n public constructor(init?: Partial) {\n super();\n if (init) {\n Object.assign(this, init);\n }\n }\n\n public editor({ focus }: EditorOptions): JSX.Element {\n return focus ? (\n \n ) : (\n
\n );\n }\n\n public html(): JSX.Element {\n return ;\n }\n\n public static async newFromHtml({\n html,\n meta,\n }: NewFromHtmlOptions): Promise {\n const domparser = new DOMParser();\n const doc = domparser.parseFromString(html, \"text/html\");\n\n return new File(\n Object.assign(\n {\n url: (doc.querySelector(\"A\") as HTMLAnchorElement).href || \"\",\n text: (doc.querySelector(\"A\") as HTMLAnchorElement).textContent || \"\",\n },\n meta\n )\n );\n }\n}\n\nexport default File;\n","import { t } from \"../../../i18n\";\nimport React, { useEffect, useMemo, CSSProperties } from \"react\";\nimport Block, { NewFromHtmlOptions, EditorOptions } from \"../../../Block\";\nimport {\n sanitize,\n getShadowDomSelectorSet,\n isPassThroughNativeEvent,\n} from \"../../../util\";\nimport type {\n Editor as TinyMCEEditor,\n TinyMCE,\n RawEditorOptions as TinyMCESettings,\n} from \"tinymce\";\nimport { useBlocksContext, useEditorContext } from \"../../../Context\";\nimport icon from \"../../../img/icon/table.svg\";\nimport EditorMode from \"../../../Component/EditorMode\";\nimport BlockToolbar from \"../../../Component/BlockToolbar\";\nimport BlockSetupCommon from \"../../../Component/BlockSetupCommon\";\nimport BlockLabel from \"../../../Component/BlockLabel\";\nimport BlockContentEditablePreview, {\n HasEditorStyle,\n} from \"../../../Component/BlockContentEditablePreview\";\nimport { editHandlers } from \"../../Text/tinymce/edit\";\nimport {\n installPlugins as installTinyMCEPlugins,\n commonSettings,\n getTinymceMajorVersion,\n} from \"../../Text/tinymce/tinymce\";\n\nimport {\n HasTinyMCE,\n tinymceFocus,\n removeTinyMCEFromBlock,\n adjustToolbar,\n} from \"../../Text/tinymce/util\";\n\ndeclare const tinymce: TinyMCE;\n\ninterface EditorProps extends Omit {\n block: Table;\n}\n\nconst Editor: React.FC = ({ block }: EditorProps) => {\n const blocksContext = useBlocksContext();\n const editorContext = useEditorContext();\n const { editor } = editorContext;\n const { addBlock } = useBlocksContext();\n\n const selectorSet = getShadowDomSelectorSet(block.id);\n const settings = useMemo(() => {\n const pluginsSettings: TinyMCESettings =\n getTinymceMajorVersion() >= 6\n ? {\n plugins: [\"table\", \"code\", \"media\", \"link\", \"MTBlockEditor\"],\n }\n : {\n plugins: \"table code paste media textcolor link MTBlockEditor\",\n };\n\n const _settings: TinyMCESettings = {\n ...commonSettings(editor, block, editorContext, blocksContext),\n ...pluginsSettings,\n toolbar:\n \"table | bold italic underline strikethrough forecolor backcolor removeformat | alignleft aligncenter alignright | link unlink | code\",\n init_instance_callback: (ed: TinyMCEEditor) => {\n block.tinymce = ed;\n\n ed.setContent(block.text);\n tinymceFocus(ed, selectorSet);\n\n const root = ed.dom.getRoot();\n\n // XXX: disable undo feature focefully\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ed.undoManager.add = (): any => {\n // XXX: improve performance\n if (getTinymceMajorVersion() >= 6) {\n ed.dispatch(\"Change\");\n } else {\n ed.fire(\"Change\");\n }\n return null;\n };\n\n let last = block.text;\n ed.on(\"MTBlockEditorEdit\", (ev) => {\n ed.dom.setHTML(ed.getBody(), ev.html);\n last = ev.html;\n });\n\n const addEdit = (): void => {\n const cur = ed.getContent();\n if (last === cur) {\n return;\n }\n\n editor.editManager.add({\n block,\n data: {\n last,\n },\n handlers: editHandlers,\n });\n\n last = cur;\n };\n\n ed.on(\"NodeChange Change\", (ev) => {\n if (root.childNodes.length <= 1) {\n addEdit();\n return;\n }\n\n if (ev.type === \"change\") {\n return;\n }\n\n let children = [...root.childNodes] as HTMLElement[];\n\n children = children\n .filter((c) => !c.classList.contains(\"mce-pastebin\"))\n .map((c) => {\n if (c.tagName === \"TABLE\") {\n return c;\n } else {\n const grandChildren: HTMLElement[] = [];\n\n [...c.querySelectorAll(\"TABLE\")].forEach((t) => {\n if ((t.parentElement as HTMLElement).closest(\"TABLE\")) {\n // nest\n return;\n }\n\n root.insertBefore(t, c);\n grandChildren.push(t as HTMLElement);\n });\n ed.dom.remove(c);\n\n return grandChildren;\n }\n })\n .flat() as HTMLElement[];\n\n if (children.length === 1) {\n addEdit();\n return;\n }\n\n children.shift();\n children.reverse();\n children.forEach((c) => {\n ed.dom.remove(c);\n });\n\n editor.editManager.beginGrouping();\n\n addEdit();\n\n children.forEach((c) => {\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n addBlock(new Table({ text: c.outerHTML }), block);\n });\n\n editor.editManager.endGrouping();\n });\n\n adjustToolbar(ed, block, editor.editorElement);\n },\n ...(editor.opts.block[\"core-table\"]?.[\"tinyMCESettings\"] || {}),\n };\n\n editor.emit(\"buildTinyMCESettings\", {\n editor,\n block,\n settings: _settings,\n });\n\n return _settings;\n }, []);\n\n useEffect(() => {\n installTinyMCEPlugins();\n tinymce.init(settings);\n\n return () => {\n removeTinyMCEFromBlock(block);\n };\n }, []);\n\n const isInSetupMode = editor.opts.mode === \"setup\";\n\n return (\n
\n \n \n
\n \n {\n if (isPassThroughNativeEvent(ev.nativeEvent)) {\n return;\n }\n\n ev.preventDefault();\n }}\n >\n
\n );\n};\n\nclass Table extends Block implements HasTinyMCE, HasEditorStyle {\n public static typeId = \"core-table\";\n public static selectable = true;\n public static icon = icon;\n public static get label(): string {\n return t(\"Table\");\n }\n\n public text = \"\";\n public tinymce: TinyMCEEditor | null = null;\n public editorStyle: CSSProperties = {};\n\n public constructor(init?: Partial) {\n super();\n if (init) {\n Object.assign(this, init);\n }\n }\n\n public focusEditor(): void {\n if (this.tinymce) {\n this.tinymce.focus(false);\n }\n }\n\n public tinymceId(): string {\n return `textarea-${this.id}`;\n }\n\n public editor({ focus, focusBlock }: EditorOptions): JSX.Element {\n if (focus) {\n return ;\n }\n\n if (focusBlock || this.htmlString()) {\n const preview = (\n \n );\n return (\n <>\n \n {preview}\n \n {preview}\n \n );\n } else {\n return this.placeholder();\n }\n }\n\n public html(): string {\n if (this.tinymce) {\n try {\n return this.tinymce.getContent();\n } catch (e) {\n console.log(e);\n }\n }\n return this.text;\n }\n\n public static async newFromHtml({\n html,\n meta,\n }: NewFromHtmlOptions): Promise {\n return new Table(Object.assign({ text: html }, meta));\n }\n}\n\nexport default Table;\n","import { t } from \"../../../i18n\";\nimport React, { useEffect, useRef, useMemo, CSSProperties } from \"react\";\nimport Block, { NewFromHtmlOptions, EditorOptions } from \"../../../Block\";\nimport type EditorManager from \"@movabletype/mt-rich-text-editor\";\nimport type {\n Editor as MTRichTextEditorEditor,\n EditorCreateOptions,\n} from \"@movabletype/mt-rich-text-editor\";\n\nimport {\n sanitize,\n getShadowDomSelectorSet,\n isPassThroughNativeEvent,\n} from \"../../../util\";\nimport { useBlocksContext, useEditorContext } from \"../../../Context\";\nimport icon from \"../../../img/icon/table.svg\";\nimport EditorMode from \"../../../Component/EditorMode\";\nimport BlockToolbar from \"../../../Component/BlockToolbar\";\nimport BlockSetupCommon from \"../../../Component/BlockSetupCommon\";\nimport BlockLabel from \"../../../Component/BlockLabel\";\nimport BlockContentEditablePreview, {\n HasEditorStyle,\n} from \"../../../Component/BlockContentEditablePreview\";\nimport { editHandlers } from \"../../Text/mt-rich-text-editor/edit\";\nimport { commonSettings } from \"../../Text/mt-rich-text-editor/common\";\n\nimport {\n HasMTRichTextEditor,\n mtRichTextEditorFocus,\n removeMTRichTextEditorFromBlock,\n adjustToolbar,\n insertCommandPlaceholder,\n} from \"../../Text/mt-rich-text-editor/util\";\n\ndeclare const MTRichTextEditor: typeof EditorManager;\n\ninterface EditorProps extends Omit {\n block: Table;\n}\n\nconst Editor: React.FC = ({ block }: EditorProps) => {\n const blocksContext = useBlocksContext();\n const editorContext = useEditorContext();\n const { editor } = editorContext;\n const { addBlock } = useBlocksContext();\n\n const selectorSet = getShadowDomSelectorSet(block.id);\n\n const toolbar = useRef(null);\n const settings: EditorCreateOptions = useMemo(() => {\n const _settings: EditorCreateOptions = {\n ...commonSettings(editor, block),\n toolbar: [\n [\n [\n [\"table\"],\n [\n \"bold\",\n \"italic\",\n \"underline\",\n \"strike\",\n \"foregroundColor\",\n \"backgroundColor\",\n \"removeFormat\",\n ],\n [\"alignLeft\", \"alignCenter\", \"alignRight\"],\n [\"link\", \"unlink\"],\n [\"source\"],\n ],\n ],\n ],\n ...(editor.opts.block[\"core-table\"]?.[\"mtRichTextEditorSettings\"] || {}),\n };\n\n editor.emit(\"buildMTRichTextEditorSettings\", {\n editor,\n block,\n settings: _settings,\n });\n\n insertCommandPlaceholder(_settings);\n\n return _settings;\n }, []);\n\n useEffect(() => {\n const toolbarContainer = document.createElement(\"div\");\n toolbar.current?.appendChild(toolbarContainer);\n settings.toolbarContainer = toolbarContainer;\n MTRichTextEditor.create(settings).then((ed) => {\n block.mtRichTextEditor = ed;\n ed.setContent(block.text);\n mtRichTextEditorFocus(ed, selectorSet);\n adjustToolbar(block, editor.editorElement);\n\n let last = block.text;\n const onUndo = (html: string): void => {\n last = html;\n };\n const addEdit = (): void => {\n const cur = ed.getContent();\n if (last === cur) {\n return;\n }\n\n editor.editManager.add({\n block,\n data: {\n last,\n onUndo,\n },\n handlers: editHandlers,\n });\n\n last = cur;\n };\n\n const root = ed.tiptap.view.dom;\n ed.tiptap.on(\"update\", () => {\n let children = [...root.children];\n\n if (children.length <= 1) {\n addEdit();\n return;\n }\n\n children = children\n .map((c) => {\n if (c.tagName === \"TABLE\") {\n return c;\n } else {\n const grandChildren: HTMLElement[] = [];\n\n [...c.querySelectorAll(\"TABLE\")].forEach((t) => {\n if ((t.parentElement as HTMLElement).closest(\"TABLE\")) {\n // nest\n return;\n }\n\n root.insertBefore(t, c);\n grandChildren.push(t as HTMLElement);\n });\n // ed.dom.remove(c);\n\n return grandChildren;\n }\n })\n .flat() as HTMLElement[];\n\n if (children.length === 1) {\n addEdit();\n return;\n }\n\n const firstChild = children.shift();\n ed.tiptap.commands.setContent(firstChild!.outerHTML);\n\n editor.editManager.beginGrouping();\n\n addEdit();\n\n children.forEach((c) => {\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n addBlock(new Table({ text: c.outerHTML }), block);\n });\n\n editor.editManager.endGrouping();\n });\n });\n\n return () => {\n removeMTRichTextEditorFromBlock(block);\n };\n }, []);\n\n const isInSetupMode = editor.opts.mode === \"setup\";\n\n return (\n
\n \n \n
\n \n {\n if (isPassThroughNativeEvent(ev.nativeEvent)) {\n return;\n }\n\n ev.preventDefault();\n }}\n ref={toolbar}\n >\n \n );\n};\n\nclass Table extends Block implements HasMTRichTextEditor, HasEditorStyle {\n public static typeId = \"core-table\";\n public static selectable = true;\n public static icon = icon;\n public static get label(): string {\n return t(\"Table\");\n }\n\n public text = \"\";\n public mtRichTextEditor: MTRichTextEditorEditor | null = null;\n public editorStyle: CSSProperties = {};\n\n public constructor(init?: Partial
) {\n super();\n if (init) {\n Object.assign(this, init);\n }\n }\n\n public focusEditor(): void {\n if (this.mtRichTextEditor) {\n this.mtRichTextEditor.focus();\n }\n }\n\n public mtRichTextEditorId(): string {\n return `textarea-${this.id}`;\n }\n\n public editor({ focus, focusBlock }: EditorOptions): JSX.Element {\n if (focus) {\n return ;\n }\n\n if (focusBlock || this.htmlString()) {\n const preview = (\n \n );\n return (\n <>\n \n {preview}\n \n {preview}\n \n );\n } else {\n return this.placeholder();\n }\n }\n\n public html(): string {\n if (this.mtRichTextEditor) {\n try {\n return this.mtRichTextEditor.getContent();\n } catch (e) {\n console.log(e);\n }\n }\n return this.text;\n }\n\n public static async newFromHtml({\n html,\n meta,\n }: NewFromHtmlOptions): Promise {\n return new Table(Object.assign({ text: html }, meta));\n }\n}\n\nexport default Table;\n","import TableForTinyMCE from \"./tinymce/Table\";\nimport TableForMTRichTextEditor from \"./mt-rich-text-editor/Table\";\n\nconst Table =\n \"MTRichTextEditor\" in globalThis ? TableForMTRichTextEditor : TableForTinyMCE;\n\nexport default Table;\n","import { t } from \"../i18n\";\nimport React from \"react\";\nimport Block from \"../Block\";\nimport icon from \"../img/icon/horizontalrule.svg\";\n\nconst Editor: React.FC = () => {\n return
;\n};\n\nclass Horizontalrule extends Block {\n public static typeId = \"core-horizontalrule\";\n public static selectable = true;\n public static icon = icon;\n public static get label(): string {\n return t(\"Horizontal Rule\");\n }\n\n public editor(): JSX.Element {\n return ;\n }\n\n public html(): JSX.Element {\n return
;\n }\n\n public static async newFromHtml(): Promise {\n return new Horizontalrule();\n }\n}\n\nexport default Horizontalrule;\n","import { t } from \"../i18n\";\nimport React from \"react\";\nimport Block, { NewFromHtmlOptions, EditorOptions } from \"../Block\";\nimport { blockProperty } from \"../decorator\";\nimport BlockIframePreview from \"../Component/BlockIframePreview\";\nimport icon from \"../img/icon/html.svg\";\nimport BlockSetupCommon from \"../Component/BlockSetupCommon\";\nimport BlockLabel from \"../Component/BlockLabel\";\n\ninterface EditorProps {\n block: Html;\n}\n\nconst Editor: React.FC = blockProperty(\n ({ block }: EditorProps) => (\n
\n \n \n \n \n
\n )\n);\n\nclass Html extends Block {\n public static typeId = \"core-html\";\n public static selectable = true;\n public static icon = icon;\n public static get label(): string {\n return t(\"HTML\");\n }\n\n public text = \"\";\n\n public constructor(init?: Partial) {\n super();\n if (init) {\n Object.assign(this, init);\n }\n }\n\n public editor({ focus, focusBlock }: EditorOptions): JSX.Element {\n return focus || focusBlock ? (\n \n ) : (\n \n );\n }\n\n public html(): string {\n return this.text;\n }\n\n public static async newFromHtml({\n html,\n meta,\n }: NewFromHtmlOptions): Promise {\n return new Html(\n Object.assign(\n {\n text: html,\n },\n meta\n )\n );\n }\n}\n\nexport default Html;\n","import BlockFactory from \"./BlockFactory\";\n\nimport Text from \"./Block/Text\";\nimport Image from \"./Block/Image\";\nimport File from \"./Block/File\";\nimport Table from \"./Block/Table\";\nimport Horizontalrule from \"./Block/Horizontalrule\";\nimport Html from \"./Block/Html\";\nimport Columns from \"./Block/Columns\";\nimport Column from \"./Block/Column\";\n\nBlockFactory.registerType(Text);\nBlockFactory.registerType(Image);\nBlockFactory.registerType(File);\nBlockFactory.registerType(Table);\nBlockFactory.registerType(Horizontalrule);\nBlockFactory.registerType(Html);\nBlockFactory.registerType(Columns);\nBlockFactory.registerType(Column);\n","import { tinymceFocus } from \"./tinymce/util\";\nimport { mtRichTextEditorFocus } from \"./mt-rich-text-editor/util\";\n\nexport const focus =\n \"MTRichTextEditor\" in globalThis ? mtRichTextEditorFocus : tinymceFocus;\n","import { t } from \"../i18n\";\nimport icon from \"../img/copy.svg\";\nimport type { Command } from \"../CommandManager\";\nimport { focus } from \"../Block/Text/util\";\nimport Text from \"../Block/Text\";\nimport Table from \"../Block/Table\";\n\nconst isTextSelected = (): boolean => {\n // Some content is selected in the HTMLElement or Text.\n // In Firefox, even if text in HTMLInputElement is selected, the value cannot be retrieved.\n const selection = window.getSelection();\n if (selection && (!selection.isCollapsed || selection.toString() !== \"\")) {\n return true;\n }\n\n // In Firefox, look for the selected text in document.activeElement.\n const element = document.activeElement;\n if (\n (element instanceof HTMLInputElement ||\n element instanceof HTMLTextAreaElement) &&\n element.selectionStart !== element.selectionEnd\n ) {\n return true;\n }\n\n return false;\n};\n\nconst isClipboardAPIAvailable: () => boolean = () =>\n typeof navigator.clipboard?.write === \"function\" ||\n typeof navigator.clipboard?.writeText === \"function\";\n\nconst command: Command = {\n get label() {\n return t(\"Copy\");\n },\n icon,\n shortcut: \"cmd+c\",\n command: \"core-copyBlock\",\n condition: isClipboardAPIAvailable,\n callback: async ({ blocks, editorContext: { editor }, event }) => {\n if (!isClipboardAPIAvailable()) {\n return;\n }\n\n if (isTextSelected()) {\n // Prefer browser default behavior\n return;\n }\n\n if (blocks.length === 0) {\n return;\n }\n\n event.preventDefault();\n\n if (blocks.length === 1) {\n const block = blocks[0];\n block.wrapperRef.current?.classList.add(\"mt-be-focus\");\n setTimeout(() => {\n block.wrapperRef.current?.classList.remove(\"mt-be-focus\");\n }, 100);\n if (block instanceof Text || block instanceof Table) {\n const editor =\n \"mtRichTextEditor\" in block ? block.mtRichTextEditor : block.tinymce;\n if (editor) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n focus(editor as any, null);\n }\n }\n }\n\n let data = (\n await Promise.all(\n blocks.map((block) => block.toClipboardItem({ editor }))\n )\n ).reduce((acc, item) => {\n if (item instanceof Array) {\n acc ||= [];\n } else {\n acc ||= \"\";\n }\n\n if (acc instanceof Array && item instanceof Array) {\n return acc.concat(item);\n } else if (typeof acc === \"string\" && typeof item === \"string\") {\n return acc + item;\n }\n }, undefined);\n\n if (typeof data === \"string\" && typeof ClipboardItem === \"function\") {\n const htmlBlob = new Blob([data], { type: \"text/html\" });\n const plainBlob = new Blob([data], { type: \"text/plain\" });\n data = [\n new ClipboardItem({\n \"text/html\": htmlBlob,\n \"text/plain\": plainBlob,\n }),\n ];\n }\n\n if (data instanceof Array) {\n navigator.clipboard.write(data);\n } else if (typeof data === \"string\") {\n navigator.clipboard.writeText(data);\n }\n },\n};\n\nexport default command;\n","import { t } from \"../i18n\";\nimport icon from \"../img/duplicate.svg\";\nimport type { Command } from \"../CommandManager\";\nimport { parseContent, preParseContent, ParserContext } from \"../util\";\n\nconst command: Command = {\n get label() {\n return t(\"Duplicate\");\n },\n icon,\n shortcut: \"cmd+d\",\n command: \"core-duplicateBlock\",\n callback: async ({\n blocks,\n editorContext: { editor, setFocusedIds },\n blocksContext: { addBlock },\n event,\n }) => {\n if (blocks.length === 0) {\n return;\n }\n\n event?.preventDefault();\n\n const html = (\n await Promise.all(\n blocks.map((block) => block.serialize({ editor, external: true }))\n )\n ).join(\"\");\n\n const newBlocks = await parseContent(\n preParseContent(html),\n editor.factory,\n new ParserContext()\n );\n\n editor.editManager.beginGrouping();\n for (const newBlock of newBlocks.reverse()) {\n addBlock(newBlock, blocks[blocks.length - 1]);\n }\n editor.editManager.endGrouping();\n setFocusedIds([newBlocks[0].id]);\n\n editor.render();\n },\n};\n\nexport default command;\n","import { t } from \"../i18n\";\nimport { isTouchDevice } from \"../util\";\nimport icon from \"../img/remove.svg\";\nimport type { Command } from \"../CommandManager\";\n\nconst command: Command = {\n get label() {\n return t(\"Delete\");\n },\n icon,\n command: \"core-deleteBlock\",\n callback: ({ blocks, editorContext: { editor }, event }) => {\n event.preventDefault();\n\n if (isTouchDevice()) {\n if (!window.confirm(t(\"Are you sure you want to remove the block?\"))) {\n return;\n }\n }\n\n editor.editManager.beginGrouping();\n blocks.forEach((block) => editor.removeBlock(editor, block));\n editor.editManager.endGrouping();\n\n editor.render();\n },\n};\n\nexport default command;\n","import type { Command } from \"../CommandManager\";\n\nconst command: Command = {\n shortcut: \"cmd+k\",\n command: \"core-insertLink\",\n callback: ({\n blocks,\n editorContext: {\n editor: { commandManager },\n },\n event,\n }) => {\n event?.preventDefault();\n\n commandManager.emit(blocks, \"core-insertLink\");\n },\n};\n\nexport default command;\n","import EventEmitter from \"eventemitter3\";\nimport React from \"react\";\nimport { render } from \"react-dom\";\nimport { InitOptions as InitOptionsI18n } from \"i18next\";\n\nimport resetCss from \"./reset.css?raw\";\nimport editorContentCss from \"./editor-content.css?raw\";\nimport {\n getElementById,\n preParseContent,\n parseContent,\n escapeSingleQuoteAttribute,\n ParserContext,\n} from \"./util\";\nimport Block, { HasBlocks, DEFAULT_KEYS_FOR_SETUP } from \"./Block\";\nimport App from \"./Component/App\";\nimport BlockFactory from \"./BlockFactory\";\nimport EditManager from \"./EditManager\";\nimport CommandManager, { Command } from \"./CommandManager\";\nimport {\n add as editHandlersAdd,\n remove as editHandlersRemove,\n swap as editHandlersSwap,\n} from \"./Editor/edit\";\n\nimport \"./import-default-blocks\";\nimport \"./import-default-commands\";\n\nexport enum StylesheetType {\n url,\n css,\n}\n\ninterface Stylesheet {\n type: StylesheetType;\n data: string;\n}\n\ninterface Metadata {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any;\n}\n\nexport interface EditorOptions {\n id: string;\n mode: string;\n stylesheets: Array;\n rootClassName?: string;\n rootAttributes?: Record;\n panelBlockTypes?: string[];\n shortcutBlockTypes?: string[];\n addButtons: Metadata;\n editManager?: Partial;\n block: Metadata;\n i18n: InitOptionsI18n;\n}\n\ninterface MetadataMapData {\n id: string;\n blockIds: Set;\n}\n\nexport class Editor extends EventEmitter implements HasBlocks {\n public id: string;\n public opts: EditorOptions;\n public factory: BlockFactory;\n public editManager: EditManager;\n public commandManager: CommandManager;\n public blocks: Block[] = [];\n public stylesheets: Stylesheet[] = [];\n public editorElement: HTMLElement;\n\n private inputElement: HTMLInputElement;\n private metadataMap: Map = new Map<\n string,\n MetadataMapData\n >();\n private metadataMapSequence = 1;\n private keyboardShortcutCache: Record = {};\n private initialized = false;\n\n public constructor(opts: EditorOptions) {\n super();\n\n this.id = opts.id;\n this.opts = opts;\n opts.block = opts.block || {};\n opts.i18n = opts.i18n || {};\n opts.addButtons = opts.addButtons || { bottom: true };\n opts.rootClassName = opts.rootClassName || \"\";\n opts.rootAttributes = opts.rootAttributes || {};\n\n this.factory = new BlockFactory();\n this.editManager = new EditManager(\n Object.assign({ editor: this }, opts.editManager || {})\n );\n this.commandManager = new CommandManager({ editor: this });\n\n this.inputElement = getElementById(this.id) as HTMLInputElement;\n this.inputElement.style.display = \"none\";\n if (!this.inputElement.parentNode) {\n throw \"error\";\n }\n\n this.editorElement = document.createElement(\"div\");\n this.editorElement.setAttribute(\"data-mt-be-id\", this.id);\n this.editorElement.classList.add(\"mt-block-editor\");\n\n this.inputElement.parentNode.insertBefore(\n this.editorElement,\n this.inputElement\n );\n\n setTimeout(async () => {\n this.keyboardShortcutCache = await this.buildKeyboardShortcutCache();\n this.stylesheets = await Promise.all(this.buildStylesheets());\n const blocks = await parseContent(\n preParseContent(this.inputElement.value),\n this.factory,\n new ParserContext()\n );\n this.blocks = blocks;\n this.emit(\"initializeBlocks\", { editor: this, blocks });\n this.initialized = true;\n\n this.render();\n }, 0);\n }\n\n public selectableTypes(typeIds: string[]): Array {\n const types = this.factory.selectableTypes();\n return typeIds\n .map((typeId) => types.find((t) => t.typeId === typeId))\n .filter((t) => t) as Array;\n }\n\n public panelTypes(): Array {\n return this.opts.panelBlockTypes\n ? this.selectableTypes(this.opts.panelBlockTypes)\n : this.factory.selectableTypes();\n }\n\n public shortcutTypes(): Array {\n return this.opts.shortcutBlockTypes\n ? this.selectableTypes(this.opts.shortcutBlockTypes)\n : [];\n }\n\n public async buildKeyboardShortcutCache(): Promise> {\n const cache: Record = {};\n for (const command of await this.commandManager.commands()) {\n if (command.shortcut) {\n cache[command.shortcut] = command;\n }\n }\n return cache;\n }\n\n public keyboardShortcutMap(): Record {\n return this.keyboardShortcutCache;\n }\n\n public addBlock(parent: HasBlocks, block: Block, index: number): void {\n const blocks = parent.blocks;\n\n blocks.splice(index, 0, block);\n\n // XXX: Skip render by default\n // this.render();\n\n this.editManager.add({\n block: block,\n data: {\n parent: parent instanceof Editor ? null : parent,\n index,\n },\n handlers: editHandlersAdd,\n });\n\n this.emit(\"changeBlocks\", {\n editor: this,\n blocks: blocks,\n });\n }\n\n public mergeBlock(parent: HasBlocks, block: Block): boolean {\n const blocks = parent.blocks;\n\n const index = blocks.indexOf(block);\n if (index === -1) {\n return false;\n }\n const before = blocks[index - 1];\n if (!before) {\n return false;\n }\n if (!before.canMerge(block)) {\n return false;\n }\n\n this.editManager.beginGrouping();\n\n this.editManager.add(before.merge(block));\n this.removeBlock(parent, block);\n\n this.editManager.endGrouping();\n\n return true;\n }\n\n public removeBlock(parent: HasBlocks, block: Block): void {\n const blocks = parent.blocks;\n\n this.emit(\"removeBlock\", {\n editor: this,\n blocks,\n block,\n });\n\n const index = blocks.indexOf(block);\n if (index === -1) {\n return;\n }\n\n blocks.splice(index, 1);\n this.render();\n\n this.editManager.add({\n block: block,\n data: {\n parent: parent instanceof Editor ? null : parent,\n index,\n },\n handlers: editHandlersRemove,\n });\n\n this.emit(\"changeBlocks\", {\n editor: this,\n blocks,\n });\n }\n\n public swapBlocks(parent: HasBlocks, a: number, b: number): void {\n const blocks = parent.blocks;\n\n [blocks[a], blocks[b]] = [blocks[b], blocks[a]];\n this.render();\n\n this.editManager.add({\n block: blocks[a],\n data: {\n parent: parent instanceof Editor ? null : parent,\n a,\n b,\n },\n handlers: editHandlersSwap,\n });\n\n this.emit(\"changeBlocks\", {\n editor: this,\n blocks,\n });\n }\n\n public async serialize(): Promise {\n if (!this.initialized) {\n // should not update textarea value before initialization\n return;\n }\n\n const blocks = this.blocks.concat();\n this.emit(\"serialize\", {\n editor: this,\n blocks,\n });\n\n const values = await Promise.all(\n blocks.map((b) => b.serialize({ editor: this, external: false }))\n );\n\n const metadataReverseMap: Metadata = {};\n this.metadataMap.forEach(({ id }, v) => {\n metadataReverseMap[id] = JSON.parse(v);\n });\n\n this.inputElement.value =\n (this.metadataMap.size > 0\n ? ``\n : \"\") + values.join(\"\");\n }\n\n private getMetadataMapIndexes(\n blockId: string,\n stringArray: string[]\n ): string[] {\n const targetMap: Record = {};\n stringArray.forEach((str) => {\n targetMap[str] = this.metadataMap.get(str);\n });\n\n const reusableIds = [];\n for (const [k, data] of this.metadataMap) {\n if (targetMap[k]) {\n continue;\n }\n\n if (data.blockIds.has(blockId)) {\n if (data.blockIds.size === 1) {\n this.metadataMap.delete(k);\n reusableIds.push(data.id);\n } else {\n data.blockIds.delete(blockId);\n }\n }\n }\n\n for (const str of Object.keys(targetMap)) {\n const data = (targetMap[str] ||= {\n id: reusableIds.shift() || (this.metadataMapSequence++).toString(36),\n blockIds: new Set(),\n });\n\n data.blockIds.add(blockId);\n if (!this.metadataMap.has(str)) {\n this.metadataMap.set(str, data);\n }\n }\n\n return Object.values(targetMap)\n .filter((td): td is MetadataMapData => !!td)\n .map((td) => td.id);\n }\n\n public serializeMeta(block: Block, external: boolean): string | null {\n const meta = block.metadata();\n if (!meta) {\n return null;\n }\n\n if (external) {\n return JSON.stringify(meta);\n }\n\n const metaSetup: Metadata = {};\n DEFAULT_KEYS_FOR_SETUP.concat(block.keysForSetup()).forEach((k) => {\n if (k in meta) {\n metaSetup[k] = meta[k];\n Reflect.deleteProperty(meta, k);\n }\n });\n\n const metaStrings = [metaSetup, meta]\n .map((m) => (Object.keys(m).length > 0 ? JSON.stringify(m) : null))\n .filter((s): s is string => !!s);\n\n return this.getMetadataMapIndexes(block.id, metaStrings).join(\",\");\n }\n\n public unload(): void {\n this.emit(\"beforeUnload\", {\n editor: this,\n });\n this.editManager.unload();\n this.editorElement.remove();\n this.inputElement.style.display = \"\";\n this.emit(\"unload\", {\n editor: this,\n });\n }\n\n public render(): void {\n render(React.createElement(App, { editor: this }), this.editorElement);\n }\n\n private buildStylesheets(): Array> {\n return [\n {\n type: StylesheetType.css,\n data: resetCss + editorContentCss,\n },\n ...this.opts.stylesheets\n .filter((s) => s)\n .map(async (s) => {\n if (/^blob:/.test(s)) {\n const res = await fetch(s);\n return {\n type: StylesheetType.css,\n data: await res.text(),\n };\n } else if (/^https?:/.test(s)) {\n return {\n type: StylesheetType.url,\n data: s,\n };\n } else {\n return {\n type: StylesheetType.css,\n data: s,\n };\n }\n }),\n ];\n }\n}\n\nexport default Editor;\n","import CommandManager from \"./CommandManager\";\n\nimport copyBlock from \"./commands/copyBlock\";\nimport pasteBlock from \"./commands/pasteBlock\";\nimport duplicateBlock from \"./commands/duplicateBlock\";\nimport deleteBlock from \"./commands/deleteBlock\";\nimport insertLink from \"./commands/insertLink\";\n\nCommandManager.registerCommand(copyBlock);\nCommandManager.registerCommand(pasteBlock);\nCommandManager.registerCommand(duplicateBlock);\nCommandManager.registerCommand(deleteBlock);\nCommandManager.registerCommand(insertLink);\n","import Editor from \"./Editor\";\n\nclass EditorManager {\n private static _instance: EditorManager;\n public editors: Editor[];\n\n public static instance(): EditorManager {\n this._instance = this._instance || new EditorManager();\n return this._instance;\n }\n\n public constructor() {\n this.editors = [];\n }\n\n public add(e: Editor): void {\n this.editors.push(e);\n }\n\n public get(id: string): Editor | undefined {\n return this.editors.find((e: Editor) => e.id === id);\n }\n\n public async remove(id: string): Promise {\n const e = this.get(id);\n if (!e) {\n return;\n }\n await e.serialize();\n e.unload();\n\n const index = this.editors.indexOf(e);\n if (index === -1) {\n return;\n }\n this.editors.splice(index, 1);\n }\n}\n\nexport default EditorManager;\n","/** @license\n# Movable Type Block Editor (C) 2020 Six Apart Ltd. All Rights Reserved.\n# This code cannot be redistributed without permission from www.sixapart.com.\n*/\n\nimport packageInfo from \"../package.json\";\nimport i18n, { init as initI18n } from \"./i18n\";\nimport { InitOptions as InitOptionsI18n } from \"i18next\";\nimport \"./mt-block-editor.scss\";\nimport Editor, { EditorOptions } from \"./Editor\";\nimport EditorManager from \"./EditorManager\";\n\nimport React from \"react\";\nimport Block from \"./Block\";\nimport Column from \"./Block/Column\";\nimport BlockFactory from \"./BlockFactory\";\n\nimport BlockIframePreview from \"./Component/BlockIframePreview\";\nimport BlockToolbar from \"./Component/BlockToolbar\";\nimport BlockToolbarButton from \"./Component/BlockToolbarButton\";\nimport BlockConfigPanel from \"./Component/BlockConfigPanel\";\nimport BlockSetup from \"./Component/BlockSetup\";\nimport BlockSetupCommon from \"./Component/BlockSetupCommon\";\nimport BlockLabel from \"./Component/BlockLabel\";\nimport EditorMode from \"./Component/EditorMode\";\nimport {\n Dialog,\n DialogHeader,\n DialogBody,\n DialogFooter,\n} from \"./Component/Dialog\";\n\nimport * as Context from \"./Context\";\nimport * as Hook from \"./Hook\";\nimport * as icon from \"./icon\";\nimport * as util from \"./util\";\nimport * as decorator from \"./decorator\";\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype EventHandler = (...args: any[]) => void;\n\nexport interface BoilerplateBlockOptions {\n typeId: string;\n className: string;\n rootBlock?: string | null;\n label: string;\n icon: string;\n iconString: string;\n html: string;\n canRemoveBlock: boolean;\n panelBlockTypes?: string[];\n shortcutBlockTypes?: string[];\n shouldBeCompiled: boolean;\n showPreview: boolean;\n previewHeader: string;\n}\n\ninterface BoilerplateBlockOverwrites {\n _html: string;\n canRemoveBlock?: boolean;\n panelBlockTypes?: string[];\n shortcutBlockTypes?: string[];\n previewHeader?: string;\n}\n\ninterface BoilerplateBlockInitOptions {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any;\n}\n\nexport class EditorUtil {\n public static version = packageInfo.version;\n public static i18n = i18n;\n public static Component = {\n BlockIframePreview,\n BlockToolbar,\n BlockToolbarButton,\n BlockConfigPanel,\n BlockSetup,\n BlockSetupCommon,\n BlockLabel,\n EditorMode,\n Dialog,\n DialogHeader,\n DialogBody,\n DialogFooter,\n };\n public static decorator = decorator;\n public static React = React;\n public static Block = Block;\n public static Context = Context;\n public static Hook = Hook;\n public static icon = icon;\n public static util = util;\n\n static #eventHandlers: Record = {};\n\n public static on(\n name: \"create\",\n handler: (opts: EditorOptions) => void\n ): void;\n public static on(name: \"init\", handler: (editor: Editor) => void): void;\n public static on(name: string, handler: EventHandler): void {\n if (!this.#eventHandlers[name]) {\n this.#eventHandlers[name] = [];\n }\n this.#eventHandlers[name].push(handler);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private static emit(name: string, ...args: any[]): void {\n const handlers = this.#eventHandlers[name] || [];\n handlers.forEach((handler) => handler(...args));\n }\n\n public static async apply(opts: EditorOptions): Promise {\n const optsI18n: InitOptionsI18n = opts.i18n || {};\n await initI18n(optsI18n);\n\n const m = EditorManager.instance();\n this.emit(\"create\", opts);\n const e = new Editor(opts as EditorOptions);\n this.emit(\"init\", e);\n m.add(e);\n\n return e;\n }\n\n public static get({ id }: { id: string }): Editor | undefined {\n const m = EditorManager.instance();\n return m.get(id);\n }\n\n public static async unload({ id }: { id: string }): Promise {\n const m = EditorManager.instance();\n await m.remove(id);\n }\n\n public static async serialize(): Promise {\n const m = EditorManager.instance();\n await Promise.all(m.editors.map((e) => e.serialize()));\n }\n\n public static registerBlockType(block: typeof Block): void {\n BlockFactory.registerType(block);\n }\n\n public static deregisterBlockType(block: typeof Block | string): void {\n BlockFactory.deregisterType(block);\n }\n\n public static createBoilerplateBlock({\n typeId,\n className,\n rootBlock,\n label,\n icon,\n iconString,\n html,\n canRemoveBlock,\n panelBlockTypes,\n shortcutBlockTypes,\n shouldBeCompiled,\n showPreview,\n previewHeader,\n }: BoilerplateBlockOptions): typeof Block {\n const BoilerplateBlock = function (\n this: Column,\n init: BoilerplateBlockInitOptions\n ): void {\n const overwrite: BoilerplateBlockOverwrites = {\n _html: html,\n };\n if (canRemoveBlock !== undefined) {\n overwrite.canRemoveBlock = !!canRemoveBlock;\n }\n if (panelBlockTypes) {\n overwrite.panelBlockTypes = panelBlockTypes;\n }\n if (shortcutBlockTypes) {\n overwrite.shortcutBlockTypes = shortcutBlockTypes;\n }\n if (previewHeader !== undefined) {\n overwrite.previewHeader = previewHeader;\n }\n\n return Reflect.construct(\n Column,\n [Object.assign(overwrite, init || {})],\n BoilerplateBlock\n );\n };\n\n BoilerplateBlock.prototype = Object.create(Column.prototype);\n BoilerplateBlock.prototype.constructor = BoilerplateBlock;\n BoilerplateBlock.typeId = typeId;\n BoilerplateBlock.className = className;\n BoilerplateBlock.label = label;\n if (rootBlock !== undefined) {\n BoilerplateBlock.rootBlock = rootBlock;\n }\n if (icon) {\n BoilerplateBlock.icon = icon;\n }\n if (iconString) {\n BoilerplateBlock.iconString = iconString;\n }\n BoilerplateBlock.selectable = true;\n if (shouldBeCompiled !== undefined) {\n BoilerplateBlock.shouldBeCompiled = shouldBeCompiled;\n }\n if (showPreview !== undefined) {\n BoilerplateBlock.showPreview = showPreview;\n }\n\n Object.setPrototypeOf(BoilerplateBlock, Column);\n\n return BoilerplateBlock as unknown as typeof Block;\n }\n\n public static isSupportedEnvironment(): boolean {\n if (/Trident|MSIE|Edge/.test(window.navigator.userAgent)) {\n return false;\n }\n\n return true;\n }\n}\n\ndeclare global {\n interface Window {\n MTBlockEditor: typeof EditorUtil;\n }\n}\n\nwindow.MTBlockEditor = EditorUtil;\n"],"names":["module","exports","locales","it","TypeError","String","isObject","wellKnownSymbol","create","definePropertyModule","UNSCOPABLES","ArrayPrototype","Array","prototype","undefined","f","configurable","value","key","charAt","S","index","unicode","length","Constructor","name","toObject","toAbsoluteIndex","toLength","O","this","argumentsLength","arguments","end","endPos","$forEach","arrayMethodIsStrict","arrayMethodUsesToLength","STRICT_METHOD","USES_TO_LENGTH","forEach","callbackfn","bind","callWithSafeIterationClosing","isArrayIteratorMethod","createProperty","getIteratorMethod","arrayLike","result","step","iterator","next","C","mapfn","mapping","iteratorMethod","call","done","toIndexedObject","createMethod","IS_INCLUDES","$this","el","fromIndex","includes","indexOf","IndexedObject","arraySpeciesCreate","push","TYPE","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","that","specificCreate","self","boundFunction","target","map","filter","some","every","find","findIndex","fails","V8_VERSION","SPECIES","METHOD_NAME","array","constructor","foo","Boolean","argument","method","DESCRIPTORS","has","defineProperty","Object","cache","thrower","options","ACCESSORS","argument0","argument1","enumerable","get","aFunction","IS_RIGHT","memo","i","left","right","isArray","originalArray","anObject","fn","ENTRIES","error","returnMethod","ITERATOR","SAFE_CLOSING","called","iteratorWithReturn","from","exec","SKIP_CLOSING","ITERATION_SUPPORT","object","toString","slice","TO_STRING_TAG_SUPPORT","classofRaw","TO_STRING_TAG","CORRECT_ARGUMENTS","tag","tryGet","callee","set","adder","add","k","len","wasDeleted","collection","remover","allDeleted","redefineAll","anInstance","iterate","defineIterator","setSpecies","fastKey","InternalStateModule","setInternalState","internalStateGetterFor","getterFor","getConstructor","wrapper","CONSTRUCTOR_NAME","ADDER","iterable","type","first","last","size","getInternalState","define","previous","state","entry","getEntry","removed","clear","data","prev","setStrong","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","iterated","kind","$","global","isForced","redefine","InternalMetadataModule","checkCorrectnessOfIteration","setToStringTag","inheritIfRequired","common","IS_WEAK","NativeConstructor","NativePrototype","exported","fixMethod","KEY","nativeMethod","entries","REQUIRED","instance","HASNT_CHAINING","THROWS_ON_PRIMITIVES","ACCEPT_ITERABLES","BUGGY_ZERO","$instance","dummy","forced","ownKeys","getOwnPropertyDescriptorModule","source","keys","getOwnPropertyDescriptor","MATCH","regexp","e","F","getPrototypeOf","requireObjectCoercible","quot","string","attribute","p1","replace","IteratorPrototype","createPropertyDescriptor","Iterators","returnThis","IteratorConstructor","NAME","bitmap","writable","toPrimitive","propertyKey","hint","createIteratorConstructor","setPrototypeOf","createNonEnumerableProperty","IS_PURE","IteratorsCore","BUGGY_SAFARI_ITERATORS","KEYS","VALUES","Iterable","DEFAULT","IS_SET","FORCED","CurrentIteratorPrototype","methods","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","values","proto","path","wrappedWellKnownSymbolModule","Symbol","document","EXISTS","createElement","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","userAgent","test","getBuiltIn","match","version","process","versions","v8","split","setGlobal","copyConstructorProperties","targetProperty","sourceProperty","descriptor","TARGET","GLOBAL","STATIC","stat","noTargetGet","sham","regexpExec","REPLACE_SUPPORTS_NAMED_GROUPS","re","groups","a","REPLACE_KEEPS_$0","REPLACE","REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE","SPLIT_WORKS_WITH_OVERWRITTEN_EXEC","originalExec","apply","SYMBOL","DELEGATES_TO_SYMBOL","DELEGATES_TO_EXEC","execCalled","flags","nativeRegExpMethod","str","arg2","forceStringMethod","stringMethod","regexMethod","RegExp","arg","flattenIntoArray","original","sourceLen","start","depth","mapper","thisArg","element","targetIndex","sourceIndex","mapFn","isExtensible","preventExtensions","b","c","factories","Function","partArgs","args","concat","argsLength","list","join","construct","variable","namespace","classof","getIterator","Map","Set","check","Math","globalThis","window","g","hasOwnProperty","console","propertyIsEnumerable","Wrapper","NewTarget","NewTargetPrototype","store","functionToString","inspectSource","hiddenKeys","uid","FREEZING","METADATA","id","setMetadata","objectID","weakData","meta","getWeakData","onFreeze","NATIVE_WEAK_MAP","objectHas","sharedKey","WeakMap","wmget","wmhas","wmset","metadata","STATE","enforce","replacement","feature","detection","normalize","POLYFILL","NATIVE","toLowerCase","isRegExp","Result","stopped","AS_ENTRIES","IS_ITERATOR","iterFn","stop","PrototypeOfArrayIteratorPrototype","arrayIterator","flush","head","notify","toggle","node","promise","then","macrotask","IS_IOS","MutationObserver","WebKitMutationObserver","Promise","IS_NODE","queueMicrotaskDescriptor","queueMicrotask","parent","domain","exit","enter","nextTick","createTextNode","observe","characterData","resolve","task","getOwnPropertySymbols","url","URL","searchParams","pathname","toJSON","sort","href","URLSearchParams","username","host","hash","PromiseCapability","reject","$$resolve","$$reject","trim","whitespaces","$parseFloat","parseFloat","Infinity","trimmedString","$parseInt","parseInt","hex","radix","objectKeys","getOwnPropertySymbolsModule","propertyIsEnumerableModule","nativeAssign","assign","A","B","symbol","alphabet","chr","T","j","activeXDocument","defineProperties","enumBugKeys","html","documentCreateElement","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","content","LT","NullProtoObject","ActiveXObject","iframeDocument","iframe","JS","write","close","temp","parentWindow","NullProtoObjectViaActiveX","style","display","appendChild","src","contentWindow","open","Properties","IE8_DOM_DEFINE","nativeDefineProperty","P","Attributes","nativeGetOwnPropertyDescriptor","nativeGetOwnPropertyNames","windowNames","getOwnPropertyNames","getWindowNames","internalObjectKeys","CORRECT_PROTOTYPE_GETTER","ObjectPrototype","names","nativePropertyIsEnumerable","NASHORN_BUG","V","aPossiblePrototype","setter","CORRECT_SETTER","__proto__","TO_ENTRIES","getOwnPropertyNamesModule","newPromiseCapability","x","promiseCapability","enforceInternalState","TEMPLATE","unsafe","simple","R","re1","re2","regexpFlags","stickyHelpers","nativeExec","nativeReplace","patchedExec","UPDATES_LAST_INDEX_WRONG","lastIndex","UNSUPPORTED_Y","BROKEN_CARET","NPCG_INCLUDED","reCopy","sticky","charsAdded","strCopy","multiline","input","ignoreCase","dotAll","RE","s","y","TAG","shared","SHARED","mode","copyright","defaultConstructor","toInteger","CONVERT_TO_STRING","pos","second","position","charCodeAt","codeAt","repeat","ceil","IS_END","maxLength","fillString","fillLen","stringFiller","stringLength","fillStr","intMaxLength","maxInt","regexNonASCII","regexSeparators","OVERFLOW_ERROR","floor","stringFromCharCode","fromCharCode","digitToBasic","digit","adapt","delta","numPoints","firstTime","baseMinusTMin","base","encode","output","counter","extra","ucs2decode","currentValue","inputLength","n","bias","basicLength","handledCPCount","m","handledCPCountPlusOne","RangeError","q","t","qMinusT","baseMinusT","label","encoded","labels","count","whitespace","ltrim","rtrim","defer","channel","port","location","setImmediate","clearImmediate","MessageChannel","Dispatch","queue","ONREADYSTATECHANGE","run","runner","listener","event","post","postMessage","protocol","now","port2","port1","onmessage","addEventListener","importScripts","removeChild","setTimeout","max","min","integer","isNaN","PREFERRED_STRING","val","valueOf","postfix","random","NATIVE_SYMBOL","USE_SYMBOL_AS_UID","WellKnownSymbolsStore","createWellKnownSymbol","withoutSetter","arrayMethodHasSpeciesSupport","IS_CONCAT_SPREADABLE","MAX_SAFE_INTEGER","MAXIMUM_ALLOWED_INDEX_EXCEEDED","IS_CONCAT_SPREADABLE_SUPPORT","SPECIES_SUPPORT","isConcatSpreadable","spreadable","E","fill","addToUnscopables","$filter","HAS_SPECIES_SUPPORT","$find","FIND","SKIPS_HOLES","flat","depthArg","$includes","$indexOf","nativeIndexOf","NEGATIVE_ZERO","searchElement","ARRAY_ITERATOR","Arguments","nativeJoin","ES3_STRINGS","separator","$map","$reduce","reduce","nativeReverse","reverse","nativeSlice","fin","nativeSort","FAILS_ON_UNDEFINED","FAILS_ON_NULL","comparefn","splice","deleteCount","insertCount","actualDeleteCount","to","actualStart","dateToPrimitive","TO_PRIMITIVE","DatePrototype","Date","INVALID_DATE","TO_STRING","nativeDateToString","getTime","NaN","FunctionPrototype","FunctionPrototypeToString","nameRE","collectionStrong","init","NUMBER","NativeNumber","NumberPrototype","BROKEN_CLASSOF","toNumber","third","maxCode","digits","code","NumberWrapper","$entries","fromEntries","obj","v","nativeGetPrototypeOf","nativeKeys","$values","parseFloatImplementation","parseIntImplementation","Internal","OwnPromiseCapability","PromiseWrapper","nativeThen","NativePromise","speciesConstructor","microtask","promiseResolve","hostReportErrors","newPromiseCapabilityModule","perform","PROMISE","getInternalPromiseState","PromiseConstructor","$fetch","newGenericPromiseCapability","DISPATCH_EVENT","createEvent","dispatchEvent","UNHANDLED_REJECTION","PromiseRejectionEvent","FakePromise","INCORRECT_ITERATION","all","isThenable","isReject","notified","chain","reactions","ok","exited","reaction","handler","fail","rejection","onHandleUnhandled","onUnhandled","reason","initEvent","isUnhandled","emit","unwrap","internalReject","internalResolve","executor","onFulfilled","onRejected","fetch","wrap","r","capability","$promiseResolve","remaining","alreadyCalled","race","nativeConstruct","NEW_TARGET_BUG","ARGS_BUG","Target","newTarget","$args","deleteProperty","getFlags","NativeRegExp","RegExpPrototype","CORRECT_NEW","RegExpWrapper","pattern","thisIsRegExp","patternIsRegExp","flagsAreUndefined","proxy","nativeToString","NOT_GENERIC","INCORRECT_NAME","p","rf","createHTML","forcedStringHTMLMethod","anchor","notARegExp","correctIsRegExpLogic","searchString","STRING_ITERATOR","point","fixRegExpWellKnownSymbolLogic","advanceStringIndex","regExpExec","nativeMatch","maybeCallNative","matcher","res","rx","fullUnicode","matchStr","$padStart","padStart","SUBSTITUTION_SYMBOLS","SUBSTITUTION_SYMBOLS_NO_NAMED","UNSAFE_SUBSTITUTE","searchValue","replaceValue","replacer","functionalReplace","results","accumulatedResult","nextSourcePosition","matched","captures","namedCaptures","replacerArgs","getSubstitution","tailPos","symbols","ch","capture","callRegExpExec","arrayPush","MAX_UINT32","SUPPORTS_Y","SPLIT","nativeSplit","internalSplit","limit","lim","lastLength","lastLastIndex","separatorCopy","splitter","unicodeMatching","z","nativeStartsWith","startsWith","CORRECT_IS_REGEXP_LOGIC","search","NativeSymbol","description","EmptyStringDescriptionStore","SymbolWrapper","symbolPrototype","symbolToString","native","desc","nativeObjectCreate","getOwnPropertyNamesExternal","defineWellKnownSymbol","HIDDEN","$Symbol","$stringify","AllSymbols","ObjectPrototypeSymbols","StringToSymbolRegistry","SymbolToStringRegistry","QObject","USE_SETTER","findChild","setSymbolDescriptor","ObjectPrototypeDescriptor","isSymbol","$defineProperty","$defineProperties","properties","$getOwnPropertySymbols","$propertyIsEnumerable","$getOwnPropertyDescriptor","$getOwnPropertyNames","IS_OBJECT_PROTOTYPE","keyFor","sym","useSetter","useSimple","stringify","space","$replacer","collectionDeleteAll","real","deleteAll","getMapIterator","newMap","findKey","sameValueZero","keyOf","mapKeys","mapValues","merge","noInitial","accumulator","update","callback","isPresentInMap","collectionAddAll","addAll","difference","newSet","getSetIterator","intersection","hasCheck","isDisjointFrom","isSubsetOf","otherSet","isSupersetOf","sep","symmetricDifference","union","at","DOMIterables","COLLECTION_NAME","Collection","CollectionPrototype","ArrayIteratorMethods","ArrayValues","scheduler","timeout","boundArgs","setInterval","USE_NATIVE_URL","hasOwn","Headers","URL_SEARCH_PARAMS","URL_SEARCH_PARAMS_ITERATOR","getInternalParamsState","plus","sequences","percentSequence","bytes","percentDecode","sequence","decodeURIComponent","deserialize","serialize","encodeURIComponent","parseSearchParams","query","attributes","shift","updateSearchParams","validateArgumentsLength","passed","required","URLSearchParamsIterator","params","URLSearchParamsConstructor","entryIterator","entryNext","updateURL","URLSearchParamsPrototype","append","getAll","found","entriesIndex","sliceIndex","body","headers","getState","EOF","arrayFrom","toASCII","URLSearchParamsModule","NativeURL","getInternalSearchParamsState","getInternalURLState","pow","INVALID_SCHEME","INVALID_HOST","INVALID_PORT","ALPHA","ALPHANUMERIC","DIGIT","HEX_START","OCT","DEC","HEX","FORBIDDEN_HOST_CODE_POINT","FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT","LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE","TAB_AND_NEW_LINE","parseHost","codePoints","parseIPv6","isSpecial","parseIPv4","percentEncode","C0ControlPercentEncodeSet","partsLength","numbers","part","number","ipv4","parts","pop","numbersSeen","ipv4Piece","swaps","swap","address","pieceIndex","compress","pointer","char","serializeHost","ignore0","unshift","ipv6","maxIndex","currStart","currLength","findLongestZeroSequence","fragmentPercentEncodeSet","pathPercentEncodeSet","userinfoPercentEncodeSet","specialSchemes","ftp","file","http","https","ws","wss","scheme","includesCredentials","password","cannotHaveUsernamePasswordPort","cannotBeABaseURL","isWindowsDriveLetter","normalized","startsWithWindowsDriveLetter","shortenURLsPath","pathSize","isSingleDot","segment","SCHEME_START","SCHEME","NO_SCHEME","SPECIAL_RELATIVE_OR_AUTHORITY","PATH_OR_AUTHORITY","RELATIVE","RELATIVE_SLASH","SPECIAL_AUTHORITY_SLASHES","SPECIAL_AUTHORITY_IGNORE_SLASHES","AUTHORITY","HOST","HOSTNAME","PORT","FILE","FILE_SLASH","FILE_HOST","PATH_START","PATH","CANNOT_BE_A_BASE_URL_PATH","QUERY","FRAGMENT","parseURL","stateOverride","bufferCodePoints","failure","buffer","seenAt","seenBracket","seenPasswordToken","fragment","codePoint","encodedCodePoints","URLConstructor","baseState","urlString","searchParamsState","serializeURL","origin","getOrigin","getProtocol","getUsername","getPassword","getHost","hostname","getHostname","getPort","getPathname","getSearch","getSearchParams","getHash","URLPrototype","accessorDescriptor","getter","nativeCreateObjectURL","createObjectURL","nativeRevokeObjectURL","revokeObjectURL","blob","prefix","Events","EE","context","once","addListener","emitter","evt","_events","_eventsCount","clearEvent","EventEmitter","eventNames","events","listeners","handlers","l","ee","listenerCount","a1","a2","a3","a4","a5","removeListener","on","removeAllListeners","off","prefixed","equal","propIsEnumerable","test1","test2","test3","letter","err","shouldUseNative","objectTypes","root","freeExports","freeModule","nodeType","freeGlobal","maxSafeInteger","reOpera","objectProto","capitalize","toUpperCase","format","forOwn","getClassOf","qualify","each","platform","parse","ua","isCustomContext","nav","navigator","isSpecialCasedOS","property","likeChrome","objectClass","airRuntimeClass","enviroClass","javaClass","java","phantomClass","rhino","environment","alpha","beta","doc","opera","operamini","operaClass","arch","prerelease","useFeatures","layout","guess","guesses","getName","product","getProduct","manufacturer","getManufacturer","os","cleanupOS","getOS","getVersion","patterns","runtime","flash","system","Capabilities","phantom","major","minor","patch","documentMode","toFixed","lang","System","getProperty","require","browser","electron","nw","appMinorVersion","external","family","architecture","cpuClass","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","props","propName","componentName","propFullName","secret","Error","getShim","isRequired","ReactPropTypes","bigint","bool","func","any","arrayOf","elementType","instanceOf","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","for","aa","u","ba","ca","da","ea","fa","ha","ia","ja","ka","la","ma","displayName","$$typeof","render","_status","_result","D","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentDispatcher","current","ReactCurrentBatchConfig","suspense","oa","_threadCount","_currentValue2","Uint16Array","H","qa","ra","sa","ta","J","d","acceptsBooleans","attributeName","attributeNamespace","mustUseProperty","propertyName","sanitizeURL","K","L","M","xlinkHref","xa","N","substring","ya","va","wa","Aa","is","Q","U","W","Ba","memoizedState","Ca","Da","Ea","Fa","dispatch","delete","action","Ga","Ha","X","Ia","readContext","useContext","useMemo","useReducer","useRef","useState","useLayoutEffect","useCallback","useImperativeHandle","useEffect","useDebugValue","useResponder","responder","useDeferredValue","useTransition","Ja","Ka","La","area","br","col","embed","hr","img","keygen","link","param","track","wbr","Ma","menuitem","Y","animationIterationCount","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","Na","Oa","Pa","Z","Children","toArray","Qa","Ra","listing","pre","textarea","Sa","Ta","Ua","Wa","Xa","children","dangerouslySetInnerHTML","suppressContentEditableWarning","suppressHydrationWarning","Ya","Za","isReactComponent","contextType","contextTypes","pa","h","isMounted","enqueueForceUpdate","enqueueReplaceState","enqueueSetState","getDerivedStateFromProps","w","updater","UNSAFE_componentWillMount","componentWillMount","getChildContext","childContextTypes","isValidElement","child","$a","domNamespace","childIndex","footer","threadID","stack","exhausted","currentSelectValue","previousWasTextNode","makeStaticMarkup","suspenseDepth","contextIndex","contextStack","contextValueStack","destroy","clearProviders","pushProvider","_context","popProvider","read","I","G","fallbackFrame","renderDOM","ref","_ctor","default","na","defaultChecked","defaultValue","checked","Va","selected","__html","ab","renderToString","renderToStaticMarkup","renderToNodeStream","renderToStaticNodeStream","onError","currentTarget","extractEvents","eventTypes","phasedRegistrationNames","registrationName","dependencies","za","stateNode","removeAttribute","setAttribute","setAttributeNS","bb","cb","db","eb","fb","gb","hb","ib","jb","kb","lb","mb","nb","pb","qb","_debugOwner","_debugSource","fileName","lineNumber","return","rb","sb","nodeName","xb","_valueTracker","getValue","setValue","stopTracking","tb","yb","zb","_wrapperState","initialChecked","Ab","initialValue","controlled","Bb","Cb","Db","Eb","ownerDocument","activeElement","Gb","Fb","Hb","defaultSelected","disabled","Ib","Jb","Kb","Lb","textContent","Mb","Nb","Ob","Pb","Qb","namespaceURI","innerHTML","firstChild","MSApp","execUnsafeLocalFunction","Rb","lastChild","nodeValue","Sb","Tb","animationend","animationiteration","animationstart","transitionend","Ub","Vb","Wb","animation","transition","Xb","Yb","Zb","$b","ac","bc","cc","dc","alternate","effectTag","ec","dehydrated","fc","hc","sibling","gc","ic","jc","kc","lc","_dispatchListeners","_dispatchInstances","isPropagationStopped","isPersistent","release","mc","nc","srcElement","correspondingUseElement","parentNode","oc","pc","qc","topLevelType","nativeEvent","targetInst","ancestors","rc","eventSystemFlags","sc","containerInfo","tc","uc","vc","wc","xc","yc","zc","Ac","Bc","Cc","Dc","Ec","Fc","Gc","Hc","Ic","Kc","blockedOn","container","Lc","pointerId","Mc","Nc","Pc","unstable_runWithPriority","priority","hydrate","Qc","Rc","Sc","Tc","Uc","unstable_scheduleCallback","unstable_NormalPriority","Vc","Wc","Yc","Zc","$c","ad","bubbled","captured","eventPriority","bd","cd","dd","unstable_UserBlockingPriority","ed","fd","gd","hd","Oc","jd","kd","ld","md","setProperty","nd","od","pd","qd","rd","sd","td","ud","vd","offset","nextSibling","wd","contains","compareDocumentPosition","xd","HTMLIFrameElement","yd","contentEditable","zd","Ad","Bd","Cd","Dd","Ed","Fd","autoFocus","Gd","Hd","Id","clearTimeout","Jd","Kd","previousSibling","Ld","Md","Nd","Od","Pd","Qd","Rd","Sd","Td","dispatchConfig","Ud","_targetInst","Vd","Wd","Xd","Yd","Zd","$d","ae","be","ce","Interface","isDefaultPrevented","defaultPrevented","returnValue","eventPool","fe","destructor","de","getPooled","preventDefault","stopPropagation","cancelBubble","persist","eventPhase","bubbles","cancelable","timeStamp","isTrusted","extend","ge","he","ie","je","ke","le","me","ne","oe","beforeInput","compositionEnd","compositionStart","compositionUpdate","pe","qe","keyCode","detail","se","ve","locale","which","te","ctrlKey","altKey","metaKey","ue","we","color","date","datetime","email","month","range","tel","text","time","week","xe","ye","change","ze","Ae","Be","Ce","De","Ee","Fe","Ge","detachEvent","He","Ie","attachEvent","Je","Ke","Le","Me","_isInputEventSupported","Ne","view","Oe","Alt","Control","Meta","Shift","Pe","getModifierState","Qe","Re","Se","Te","Ue","Ve","screenX","screenY","clientX","clientY","pageX","pageY","shiftKey","button","buttons","relatedTarget","fromElement","toElement","movementX","movementY","We","width","height","pressure","tangentialPressure","tiltX","tiltY","twist","pointerType","isPrimary","Xe","mouseEnter","mouseLeave","pointerEnter","pointerLeave","Ye","defaultView","$e","af","bf","cf","df","select","ef","ff","gf","hf","jf","selectionStart","selectionEnd","anchorNode","getSelection","anchorOffset","focusNode","focusOffset","kf","onSelect","lf","animationName","elapsedTime","pseudoElement","mf","clipboardData","nf","of","charCode","pf","Esc","Spacebar","Left","Up","Right","Down","Del","Win","Menu","Apps","Scroll","MozPrintableKey","qf","sf","dataTransfer","tf","touches","targetTouches","changedTouches","uf","vf","deltaX","wheelDeltaX","deltaY","wheelDeltaY","wheelDelta","deltaZ","deltaMode","wf","SimpleEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin","yf","zf","Af","Bf","Cf","__reactInternalMemoizedUnmaskedChildContext","__reactInternalMemoizedMaskedChildContext","Df","Ef","Ff","Gf","__reactInternalMemoizedMergedChildContext","Hf","If","Jf","Kf","unstable_cancelCallback","Lf","unstable_requestPaint","Mf","unstable_now","Nf","unstable_getCurrentPriorityLevel","Of","unstable_ImmediatePriority","Pf","Qf","Rf","unstable_LowPriority","Sf","unstable_IdlePriority","Tf","Uf","unstable_shouldYield","Vf","Wf","Xf","Yf","Zf","$f","ag","bg","cg","dg","eg","fg","gg","hg","ig","defaultProps","jg","kg","lg","mg","ng","og","_currentValue","pg","childExpirationTime","qg","firstContext","expirationTime","rg","sg","observedBits","responders","tg","ug","updateQueue","baseQueue","pending","effects","vg","wg","suspenseConfig","payload","xg","yg","zg","Ag","Bg","Cg","Dg","Eg","Component","refs","Fg","Jg","_reactInternalFiber","Gg","Hg","Ig","Kg","shouldComponentUpdate","isPureReactComponent","Lg","Mg","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","Ng","getSnapshotBeforeUpdate","componentDidMount","Og","Pg","_owner","_stringRef","Qg","Rg","lastEffect","nextEffect","firstEffect","Sg","Tg","Ug","implementation","Vg","Wg","Xg","Yg","Zg","$g","ah","bh","dh","documentElement","tagName","eh","fh","gh","hh","memoizedProps","revealOrder","ih","jh","kh","lh","mh","nh","oh","ph","qh","rh","sh","th","uh","vh","wh","lastRenderedReducer","eagerReducer","eagerState","lastRenderedState","xh","yh","zh","Ah","deps","Bh","Ch","Dh","Eh","Fh","Gh","Hh","Ih","Jh","Kh","Lh","Mh","Nh","Oh","Ph","Qh","Rh","Sh","Th","pendingProps","Uh","Vh","Wh","Xh","Yh","ReactCurrentOwner","Zh","$h","ai","bi","compare","ci","di","ei","fi","UNSAFE_componentWillUpdate","componentWillUpdate","componentDidUpdate","gi","getDerivedStateFromError","hi","pendingContext","ni","oi","pi","qi","ii","retryTime","ji","fallback","unstable_avoidThisFallback","ki","li","isBackwards","rendering","renderingStartTime","tail","tailExpiration","tailMode","mi","ri","si","wasMultiple","multiple","onClick","onclick","createElementNS","ti","ui","vi","wi","xi","yi","zi","Ai","Bi","WeakSet","Ci","Fi","Ei","Gi","__reactInternalSnapshotBeforeUpdate","Hi","Ii","Ji","focus","Ki","Li","componentWillUnmount","Di","Mi","Ni","Oi","Pi","Qi","Ri","insertBefore","_reactRootContainer","Si","Ti","Ui","Vi","Wi","Xi","Yi","Zi","$i","componentDidCatch","aj","componentStack","Rj","bj","cj","dj","ej","fj","gj","hj","ij","jj","kj","lj","mj","nj","oj","pj","qj","rj","sj","tj","uj","vj","wj","timeoutMs","xj","yj","zj","lastExpiredTime","Aj","firstPendingTime","lastPingedTime","nextKnownPendingLevel","callbackExpirationTime","callbackPriority","callbackNode","Bj","Cj","Dj","Ej","Fj","Gj","Hj","finishedWork","finishedExpirationTime","lastSuspendedTime","Ij","timeoutHandle","Jj","busyMinDurationMs","busyDelayMs","Kj","Mj","Nj","pingCache","Oj","ub","Pj","Xc","Qj","Sj","firstSuspendedTime","rangeCount","wb","activeElementDetached","focusedElem","selectionRange","Tj","createRange","setStart","removeAllRanges","addRange","setEnd","scrollLeft","top","scrollTop","vb","Uj","Vj","Wj","hidden","ob","Xj","_calculateChangedBits","unstable_observedBits","Zj","pendingChildren","ak","bk","ck","dk","ek","fk","Jc","_internalRoot","gk","ik","hasAttribute","hk","kk","jk","unmount","querySelectorAll","JSON","form","Lj","lk","findFiberByHostInstance","__REACT_DEVTOOLS_GLOBAL_HOOK__","isDisabled","supportsFiber","inject","onCommitFiberRoot","onCommitFiberUnmount","Yj","overrideHookState","overrideProps","setSuspenseHandler","scheduleUpdate","currentDispatcherRef","findHostInstanceByFiber","findHostInstancesForRefresh","scheduleRefresh","scheduleRoot","setRefreshHandler","getCurrentFiber","bundleType","rendererPackageName","createPortal","findDOMNode","flushSync","unmountComponentAtNode","unstable_batchedUpdates","unstable_createPortal","unstable_renderSubtreeIntoContainer","checkDCE","__self","__source","jsx","setState","forceUpdate","keyPrefix","escape","IsSomeRendererActing","only","Fragment","Profiler","PureComponent","StrictMode","Suspense","cloneElement","createContext","Provider","Consumer","createFactory","createRef","forwardRef","lazy","Op","iteratorSymbol","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","innerFn","outerFn","tryLocsList","protoGenerator","Generator","generator","Context","makeInvokeMethod","tryCatch","GenStateSuspendedStart","GenStateSuspendedYield","GenStateExecuting","GenStateCompleted","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","getProto","NativeIteratorPrototype","Gp","defineIteratorMethods","_invoke","AsyncIterator","PromiseImpl","invoke","record","__await","unwrapped","previousPromise","callInvokeWithMethodAndArg","delegate","delegateResult","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","methodName","info","resultName","nextLoc","pushTryEntry","locs","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","isGeneratorFunction","genFun","ctor","mark","awrap","async","iter","skipTempReset","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","unstable_forceFrameRate","performance","cancelAnimationFrame","requestAnimationFrame","sortIndex","startTime","priorityLevel","unstable_Profiling","unstable_continueExecution","unstable_getFirstCallbackNode","unstable_next","unstable_pauseExecution","delay","unstable_wrapCallback","webpackContext","req","webpackContextResolve","__webpack_require__","o","__webpack_module_cache__","moduleId","cachedModule","loaded","__webpack_modules__","__esModule","definition","prop","nmd","paths","_typeof","toPropertyKey","Number","_defineProperty","_classCallCheck","_defineProperties","_createClass","_assertThisInitialized","ReferenceError","_possibleConstructorReturn","_getPrototypeOf","_setPrototypeOf","_inherits","consoleLogger","log","warn","baseLogger","Logger","concreteLogger","logger","debug","_len","_key","forward","_len2","_key2","_len3","_key3","_len4","_key4","lvl","debugOnly","moduleName","observers","_this","observer","rej","makeString","getLastOfPath","Empty","cleanKey","canNotTraverseDeeper","setPath","newValue","_getLastOfPath","getPath","_getLastOfPath3","getPathWithDefaults","defaultData","deepExtend","overwrite","regexEscape","_entityMap","isIE10","ResourceStore","_EventEmitter","ns","defaultNS","keySeparator","lng","silent","addNamespaces","resources","addResource","deep","pack","hasResourceBundle","removeNamespaces","getResource","compatibilityAPI","postProcessor","processors","addPostProcessor","translator","processor","checkedLoadedFor","Translator","services","copy","language","interpolation","resolved","nsSeparator","namespaces","interpolator","nestingRegexp","lastKey","_this2","overloadTranslationOptionHandler","_this$extractFromKey","extractFromKey","appendNamespaceToCIMode","resUsedKey","usedKey","resExactUsedKey","exactUsedKey","resType","joinArrays","handleAsObjectInI18nFormat","i18nFormat","handleAsObject","returnObjects","returnedObjectHandler","resTypeIsArray","copy$$1","newKeyToUse","deepKey","translate","extendTranslation","usedDefault","isValidLookup","suffix","pluralResolver","getSuffix","updateMissing","lngs","fallbackLngs","languageUtils","getFallbackCodes","fallbackLng","saveMissingTo","toResolveHierarchy","send","missingKeyHandler","backendConnector","saveMissing","needsPluralHandling","saveMissingPlurals","getPluralFormsOfKey","appendNamespaceToMissingKey","parseMissingKeyHandler","_this3","usedLng","usedNS","skipInterpolation","nestBef","skipOnVariables","defaultVariables","interpolate","nest","postProcess","postProcessorNames","applyPostProcessor","postProcessPassResolved","i18nResolved","_this4","extracted","fallbackNS","needsContextHandling","codes","utils","hasLoadedNamespace","pluralSuffix","possibleKey","finalKey","finalKeys","addLookupKeys","contextSeparator","returnNull","returnEmptyString","resourceStore","LanguageUtil","whitelist","supportedLngs","formatLanguageCode","specialCases","lowerCaseLng","cleanCode","deprecate","isSupportedCode","load","nonExplicitSupportedLngs","getLanguagePartFromCode","cleanedLng","lngOnly","supportedLng","fallbacks","getScriptPartFromCode","fallbackCode","fallbackCodes","addCode","sets","nr","_rulesPluralsTypes","PluralResolver","rules","plurals","rule","getRule","ret","idx","noAbs","abs","simplifyPluralSuffix","returnSuffix","prepend","compatibilityJSON","Interpolator","escapeValue","iOpts","useRawValueToEscape","prefixEscaped","suffixEscaped","formatSeparator","unescapePrefix","unescapeSuffix","nestingPrefix","nestingPrefixEscaped","nestingSuffix","nestingSuffixEscaped","nestingOptionsSeparator","maxReplaces","alwaysFormat","resetRegExp","regexpStr","regexpUnescapeStr","regexpUnescape","nestingRegexpStr","replaces","regexSafe","handleFormat","missingInterpolationHandler","regex","safeValue","todo","clonedOptions","handleHasOptions","inheritedOptions","optionsString","formatters","doReduce","elem","Connector","backend","languages","toLoad","toLoadLanguages","toLoadNamespaces","hasAllNamespaces","reload","errors","addResourceBundle","_getLastOfPath2","arr","what","remove","fcName","tried","wait","queueLoad","loadOne","prepareLoading","_this5","fallbackValue","isUpdate","transformOptions","nonExplicitWhitelist","noop","I18n","modules","isInitialized","isClone","initImmediate","createClassOnDemand","ClassOrObject","preload","pluralSeparator","partialBundledLanguages","tDescription","_format","lu","languageDetector","_this2$store","_this2$store2","deferred","changeLanguage","usedCallback","isLanguageChangingTo","setLng","getBestMatchFromCodes","cacheUserLanguage","loadResources","detect","fixedT","opts","rest","_this$translator","_this$translator2","exists","_this6","lastLng","loadNotPending","loadState","precheck","preResult","_this7","preloaded","newLngs","_this8","mergedOptions","clone","addQueryString","queryString","paramName","ajax","queryStringParams","XMLHttpRequest","crossDomain","setRequestHeader","withCredentials","overrideMimeType","customHeaders","onreadystatechange","readyState","responseText","Backend","defaults","loadPath","addPath","allowMultiLoading","parsePayload","loadUrl","xhr","status","i18n","use","initPromise","_x","_init","_callee","Blob","mediaBreakPoint","_isIos","_platform$os","isIos","_isTouchDevice","_platform$os2","isTouchDevice","focusIfIos","passive","_isNarrowScreen","isNarrowScreen","updateIsNarrowScreen","matchMedia","matches","isFrozen","freeze","seal","Reflect","fun","thisValue","Func","arrayForEach","unapply","arrayLastIndexOf","lastIndexOf","arrayPop","arraySplice","stringToLowerCase","stringToString","stringMatch","stringReplace","stringIndexOf","stringTrim","objectHasOwnProperty","regExpTest","typeErrorCreate","addToSet","transformCaseFunc","lcElement","cleanArray","newObject","lookupGetter","html$1","svg$1","svgFilters","svgDisallowed","mathMl$1","mathMlDisallowed","svg","mathMl","xml","MUSTACHE_EXPR","ERB_EXPR","TMPLIT_EXPR","DATA_ATTR","ARIA_ATTR","IS_ALLOWED_URI","IS_SCRIPT_OR_DATA","ATTR_WHITESPACE","DOCTYPE_NAME","CUSTOM_ELEMENT","EXPRESSIONS","NODE_TYPE","getGlobal","purify","createDOMPurify","DOMPurify","Element","isSupported","originalDocument","currentScript","DocumentFragment","HTMLTemplateElement","Node","NodeFilter","MozNamedAttrMap","DOMParser","trustedTypes","ElementPrototype","cloneNode","getNextSibling","getChildNodes","getParentNode","template","trustedTypesPolicy","emptyHTML","createNodeIterator","createDocumentFragment","getElementsByTagName","importNode","hooks","afterSanitizeAttributes","afterSanitizeElements","afterSanitizeShadowDOM","beforeSanitizeAttributes","beforeSanitizeElements","beforeSanitizeShadowDOM","uponSanitizeAttribute","uponSanitizeElement","uponSanitizeShadowNode","createHTMLDocument","IS_ALLOWED_URI$1","ALLOWED_TAGS","DEFAULT_ALLOWED_TAGS","ALLOWED_ATTR","DEFAULT_ALLOWED_ATTR","CUSTOM_ELEMENT_HANDLING","tagNameCheck","attributeNameCheck","allowCustomizedBuiltInElements","FORBID_TAGS","FORBID_ATTR","ALLOW_ARIA_ATTR","ALLOW_DATA_ATTR","ALLOW_UNKNOWN_PROTOCOLS","ALLOW_SELF_CLOSE_IN_ATTR","SAFE_FOR_TEMPLATES","SAFE_FOR_XML","WHOLE_DOCUMENT","SET_CONFIG","FORCE_BODY","RETURN_DOM","RETURN_DOM_FRAGMENT","RETURN_TRUSTED_TYPE","SANITIZE_DOM","SANITIZE_NAMED_PROPS","KEEP_CONTENT","IN_PLACE","USE_PROFILES","FORBID_CONTENTS","DEFAULT_FORBID_CONTENTS","DATA_URI_TAGS","DEFAULT_DATA_URI_TAGS","URI_SAFE_ATTRIBUTES","DEFAULT_URI_SAFE_ATTRIBUTES","MATHML_NAMESPACE","SVG_NAMESPACE","HTML_NAMESPACE","NAMESPACE","IS_EMPTY_INPUT","ALLOWED_NAMESPACES","DEFAULT_ALLOWED_NAMESPACES","MATHML_TEXT_INTEGRATION_POINTS","HTML_INTEGRATION_POINTS","COMMON_SVG_AND_HTML_ELEMENTS","PARSER_MEDIA_TYPE","SUPPORTED_PARSER_MEDIA_TYPES","CONFIG","formElement","isRegexOrFunction","testValue","_parseConfig","cfg","ADD_URI_SAFE_ATTR","ADD_DATA_URI_TAGS","ALLOWED_URI_REGEXP","ADD_TAGS","ADD_ATTR","table","tbody","TRUSTED_TYPES_POLICY","createScriptURL","purifyHostElement","createPolicy","ATTR_NAME","getAttribute","policyName","scriptUrl","_","_createTrustedTypesPolicy","ALL_SVG_TAGS","ALL_MATHML_TAGS","_forceRemove","_removeAttribute","getAttributeNode","_initDocument","dirty","leadingWhitespace","dirtyPayload","parseFromString","createDocument","childNodes","_createNodeIterator","SHOW_ELEMENT","SHOW_COMMENT","SHOW_TEXT","SHOW_PROCESSING_INSTRUCTION","SHOW_CDATA_SECTION","_isClobbered","hasChildNodes","_isNode","_executeHooks","currentNode","hook","_sanitizeElements","allowedTags","firstElementChild","_isBasicCustomElement","childClone","__removalCount","parentTagName","_checkValidNamespace","expr","_isValidAttribute","lcTag","lcName","_sanitizeAttributes","hookEvent","attrName","attrValue","keepAttr","allowedAttributes","forceKeepAttr","attr","getAttributeType","_sanitizeShadowDOM","shadowNode","shadowIterator","nextNode","sanitize","importedNode","returnNode","nodeIterator","shadowroot","shadowrootmode","serializedHTML","outerHTML","doctype","setConfig","clearConfig","isValidAttribute","addHook","entryPoint","hookFunction","removeHook","removeHooks","removeAllHooks","getElementById","querySelector","elm","selector","getNodeValue","getNodeValueByTagName","_toConsumableArray","selectorCmp","nthChildIndexes","buildSelector","nthOfTypeIndexes","_loop","nn","getShadowDomSelectorSet","blockId","div","shadowRoot","closest","getElementByNthOfTypeIndexes","indexes","_ref","_ref2","_slicedToArray","HTMLElement","entityRegExp","entityMap","escapeSingleQuoteAttribute","unescapeSingleQuoteAttribute","entityReverseMap","_ref3","_ref4","decodeHtml","isPassThroughNativeEvent","ev","nl2br","line","React","defaultSize","defaultSinglelineSize","isEqualSize","idSequence","DEFAULT_KEYS_FOR_SETUP","Block","_newFromFile","_newFromHtml","_new2","_toClipboardItem","_serialize","_compile","_serializedString","round","wrapperRef","iframePreviewSize","stripped","_asyncToGenerator","block","isNewlyAdded","_callee2","_context2","_x2","_callee3","_context3","_x3","iconString","icon","typeId","wrapperElement","inputElm","contentLabel","placeholderLabel","className","ReactDOMServer","classNames","metadataByOwnKeys","parentKeys","pk","helpText","htmlString","_callee4","_context4","_x4","_callee5","_context5","_x5","_callee6","_this$compiledHtml","_context6","removeChildIntermediateProduct","compiledHtml","shouldBeCompiled","compile","editor","serializeMeta","serializedString","removeIntermediateProduct","_x6","_callee7","_context7","_objectSpread","_x7","EditorContext","useEditorContext","BlocksContext","useBlocksContext","BlockContext","useBlockContext","_extends","_objectWithoutPropertiesLoose","_inheritsLoose","replaceClassName","origClass","classToRemove","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","Transition","_React$Component","initialStatus","appear","isMounting","appearStatus","in","unmountOnExit","mountOnEnter","nextCallback","prevState","_proto","updateStatus","prevProps","nextStatus","cancelNextCallback","getTimeouts","mounting","performEnter","performExit","appearing","nodeRef","maybeNode","maybeAppearing","timeouts","enterTimeout","config","safeSetState","onEntered","onEnter","onEntering","onTransitionEnd","onExit","onExiting","onExited","cancel","nextState","setNextCallback","active","doesNotHaveTimeoutOrListener","addEndListener","maybeNextCallback","_this$props","childProps","TransitionGroupContext","propTypes","removeClass","classes","classList","baseVal","CSSTransition","appliedClasses","_this$resolveArgument","resolveArguments","removeClasses","addClass","_this$resolveArgument2","_this$resolveArgument3","getClassNames","isStringClassNames","baseClassName","activeClassName","doneClassName","phase","hasClass","_addClass","_this$appliedClasses$","command","_useState2","isDialogOpen","setDialogOpen","blocksContext","editorContext","getFocusedIds","dialog","commandManager","execute","blockIds","shortcut","toKeyboardShortcutLabel","PANEL_CLASS_NAME","PANEL_PLACEMENT_DATA_NAME","BlockCommandPanel","commands","setCommands","panelRef","unloaded","contextCommands","panel","dataset","getBoundingClientRect","BlockCommand","ListStatus","AddButton","labelDirect","showShortcuts","_useBlocksContext","panelBlockTypes","shortcutBlockTypes","addBlock","Hidden","showList","setShowList","buttonElRef","blockListElRef","dummyInputElRef","onDrop","onWindowClick","blockListEl","removeEventListener","_useMemo2","selectableTypes","shortcutTypes","panelTypes","onlyShortcuts","t0","Event","t1","t2","tabIndex","onDragOver","types","dropEffect","onDragEnter","onDragLeave","files","canNewFromFile","newFromFile","title","stopImmediatePropagation","_ref5","_ref6","Visible","None","_ref7","BlockToolbar","blockContext","rendered","swapBlocks","isCommandPanelShown","setCommandPanelShown","toggleCommandPanelShown","focusEditor","rows","hasBorder","onMouseDown","DEFAULT_MIN_ROWS","recursiveMap","rowCount","editHandlers","cur","undo","hist","setFocusedIds","redo","blockProperty","setBlock","_useState4","editGroups","setEditGroups","blockEditor","_wrapperRef$current","focusEl","activeEl","scrollHeight","offsetHeight","_child$props$dataPro","onChange","onKeyDown","minRows","lastValue","HTMLTextAreaElement","editManager","generateGroup","group","HTMLInputElement","EditorMode","labelMap","_ref$keys","BlockSetup","onMouseUp","_useEditorContext","divElRef","focusedIds","inFocusGroup","divEl","getComputedStyle","editorStyle","fontSize","fontFamily","mousedownListener","CustomEvent","keyupListener","CARET_ATTR","CARET","tinymceFocus","selectorSet","selection","getBody","caret","dom","_sort2","startNode","endNode","rng","getRng","collapse","_tinymceFocus","removeTinyMCEFromBlock","tinymce","getContent","tinymceId","adjustToolbar","_adjustToolbar","editorElement","toolbar","blockEl","editorRect","blockRect","getRoot","lookup","BlockEditorCommandEvent","_CustomEvent","_super","_createSuper","_wrapNativeSuper","CommandManager","_commands","_contextCommands","allCommands","_allContextCommands","allContextCommands","_yield$c$condition","_c$condition","condition","t3","_yield$c$condition2","_c$condition2","eventEmitters","_this$eventEmitters$g","blocks","_this$eventEmitters$g2","_this$eventEmitters$g3","toKeyboardShortcutKey","keyboardShortcutMap","findDescendantBlocks","useCommands","_step","_iterator","_createForOfIteratorHelper","removeAllListenersOfBlock","_callback","_condition","commandId","BlockEditorPasteCommandEvent","_BlockEditorCommandEv","_navigator$clipboard","clipboard","_ref2$editorContext","_event$clipboardData","clipboardItems","clipboardItem","_event$clipboardData2","_iterator2","_step2","_clipboardItem","_iterator3","_step3","newBlocks","_iterator4","_step4","newBlock","KeyboardEvent","ClipboardEvent","items","getData","getType","parseContent","preParseContent","factory","ParserContext","beginGrouping","endGrouping","eventAttrs","eventPrefix","eventAttrsArg","eventPrefixedAttrsArg","commentPrefix","parser","addAttributeFilter","nodes","serializer","nameWithPrefix","addEventHandlerFilter","editorManager","majorVersion","addNodeFilter","unescape","addCommentFilter","item","plainTextContent","getAsFile","pluginsInstalled","tinymceMajorVersion","getTinymceMajorVersion","installPlugins","PluginManager","MTBlockEditorPlugin","commonSettings","menubar","contextmenu","fixed_toolbar_container","inline","paste_preprocess","_preventDefault","DataTransfer","setData","fire","TAG_NAME_MAP","h1","h2","h3","h4","h5","h6","ToolbarVisibleStatus","DependsOnContent","Invisible","Editor","canRemove","removeBlock","mergeBlock","settings","_editor$opts$block$co","pluginsToolbarSettings","plugins","_settings","init_instance_callback","setContent","undoManager","setHTML","addEdit","rootRect","tn","textBlock","Text","toolbarVisibleStatus","contentDeleted","inputType","collapsed","sel","getSel","getStart","startOffset","installTinyMCEPlugins","isInSetupMode","toolbarVisible","_document$querySelect","BlockSetupCommon","BlockLabel","_Block","_get","focusBlock","preview","BlockContentEditablePreview","placeholder","history","closeTag","openTag","mtRichTextEditorFocus","tiptap","posAtDOM","resolvedPos","tr","setSelection","deleteSelection","startElement","endElement","startPos","_mtRichTextEditorFocus","removeMTRichTextEditorFromBlock","mtRichTextEditor","MTRichTextEditor","unload","mtRichTextEditorId","_toolbar$parentElemen","firstBlockElRect","_blockEl$parentElemen","parentBlockEl","blockElRect","parentElement","PLACEHOLDER_ITEM_NAME","isCommandPlaceholderDefined","insertCommandPlaceholder","customElements","_HTMLElement","_class","onUndo","_editor$opts$i18n$lng","editorStylesheets","stylesheets","pasteMenu","extensionOptions","undoRedo","registerShortcuts","embedObject","resolver","embedObjectResolver","_settings$toolbar","_toolbar$current","toolbarContainer","transaction","getMeta","empty","$from","TextForTinyMCE","substr","camelize","decamelize","pascalize","depascalize","camelizeKeys","decamelizeKeys","pascalizeKeys","depascalizeKeys","humps","Proxy","delegatesFocus","styleSheets","ssr","attachShadow","adoptedStyleSheets","CSSStyleSheet","invariant","argIndex","framesToPop","DndContext","dragDropManager","useDragDropManager","useIsomorphicLayoutEffect","DropTargetImpl","spec","monitor","protoProps","staticProps","canDrop","getItem","hover","drop","_i","_s","_e","_arr","_n","_d","minLen","arr2","useRegisteredDropTarget","connector","manager","dropTarget","useDropTarget","accept","useAccept","_registerTarget","registry","getRegistry","targetId","addTarget","removeTarget","registerTarget","_registerTarget2","handlerId","unregister","receiveHandlerId","useOptionalFactory","memoDeps","isCallingCanDrop","DropTargetMonitorImpl","internalMonitor","getMonitor","subscribeToStateChange","canDropOnTarget","isOverTarget","getItemType","getDropResult","didDrop","getInitialClientOffset","getInitialSourceClientOffset","getSourceClientOffset","getClientOffset","getDifferenceFromInitialOffset","shallowEqual","objA","objB","compareContext","compareResult","keysA","keysB","bHasOwnProperty","valueA","valueB","wrapHookToRecognizeElement","elementOrNode","throwIfCompositeComponentElement","newRef","previousRef","setRef","cloneWithRef","wrapConnectorHooks","wrappedHooks","endsWith","wrappedHook","isRef","TargetConnector","clearDropTarget","dropTargetOptions","dropTargetRef","dropTargetNode","reconnect","didChange","didHandlerIdChange","didDropTargetChange","didOptionsChange","disconnectDropTarget","lastConnectedHandlerId","lastConnectedDropTarget","lastConnectedDropTargetOptions","unsubscribeDropTarget","connectDropTarget","newHandlerId","dropTargetOptionsInternal","useMonitorOutput","collect","onCollect","_useCollector","onUpdate","collected","setCollected","updateCollected","nextValue","useCollector","_useCollector2","getHandlerId","handlerIds","useCollectedProps","collector","useConnectDropTarget","useDrop","specArg","getBackend","useDropTargetConnector","DragSourceImpl","canDrag","globalMonitor","isDragging","getSourceId","useRegisteredDragSource","useDragSource","itemType","useDragType","_registerSource","sourceId","addSource","removeSource","registerSource","_registerSource2","isCallingCanDrag","isCallingIsDragging","DragSourceMonitorImpl","canDragSource","isDraggingSource","getTargetIds","isSourcePublic","subscribeToOffsetChange","SourceConnector","dragSource","clearDragSource","dragSourceOptions","dragSourceRef","dragSourceNode","reconnectDragSource","dragPreview","clearDragPreview","dragPreviewOptions","dragPreviewRef","dragPreviewNode","reconnectDragPreview","dragSourceOptionsInternal","dragPreviewOptionsInternal","didConnectedDragSourceChange","didDragSourceOptionsChange","disconnectDragSource","lastConnectedDragSource","lastConnectedDragSourceOptions","dragSourceUnsubscribe","connectDragSource","didConnectedDragPreviewChange","didDragPreviewOptionsChange","disconnectDragPreview","lastConnectedDragPreview","lastConnectedDragPreviewOptions","dragPreviewUnsubscribe","connectDragPreview","useConnectDragSource","useConnectDragPreview","useDrag","begin","useDragSourceConnector","previewOptions","memoize","EnterLeaveCounter","isNodeInDocument","enteringNode","previousLength","entered","itemsA","itemsB","insertItem","leavingNode","isFirefox","isSafari","safari","MonotonicInterpolant","xs","ys","dx","dy","dys","dxs","ms","c1s","_i2","m2","mNext","dxNext","c2s","c3s","_i3","c1","invDx","_common","mid","low","high","xHere","diff","diffSq","getNodeClientOffset","_el$getBoundingClient","getEventClientOffset","getDragPreviewOffset","sourceNode","clientOffset","anchorPoint","offsetPoint","_document$documentEle","isImage","dragPreviewNodeOffsetFromClient","offsetFromDragPreview","sourceWidth","offsetWidth","sourceHeight","anchorX","anchorY","_getDragPreviewSize","dragPreviewWidth","dragPreviewHeight","devicePixelRatio","getDragPreviewSize","offsetX","offsetY","isManualOffsetY","calculateYOffset","_nativeTypesConfig","TEXT","HTML","getDataFromDataTransfer","typesToTry","resultSoFar","typeToTry","nativeTypesConfig","exposeProperties","matchesTypes","urls","NativeDragSource","initializeExposedProperties","newProperties","matchNativeItemType","dataTransferTypes","nativeItemType","OptionsReader","globalContext","optionsArgs","_this$globalContext","_this$optionsArgs","rootElement","enumerableOnly","getOwnPropertyDescriptors","ListenerType","HTML5BackendImpl","sourceNodes","isDraggingNativeItem","actions","endDrag","currentNativeHandle","currentNativeSource","currentDragSourceNode","clearCurrentDragSourceNode","dragStartSourceIds","beginDrag","publishSource","nativeType","setDragImage","sourcePreviewNodes","_this$getCurrentSourc","getCurrentSourcePreviewNodeOptions","dragPreviewOffset","setCurrentDragSourceNode","captureDraggingState","publishDragSource","beginDragNativeItem","dragEnterTargetIds","enterLeaveCounter","altKeyPressed","getCurrentDropEffect","dragOverTargetIds","leave","endDragNativeItem","_this$currentNativeSo","dropTargetIds","loadDataTransfer","dragDrop","isContentEditable","getActions","_this$dragStartSource","_this$dragOverTargetI","sourcePreviewNodeOptions","sourceNodeOptions","__isReactDndBackendSetUp","addEventListeners","_this$window","removeEventListeners","asyncEndDragFrameId","handleDragStart","handleSelectStart","handleDragEnter","handleDragOver","handleDrop","handleTopDragStart","handleTopDragStartCapture","handleTopDragEndCapture","handleTopDragEnter","handleTopDragEnterCapture","handleTopDragLeaveCapture","handleTopDragOver","handleTopDragOverCapture","handleTopDrop","handleTopDropCapture","getCurrentSourceNodeOptions","createNativeDragSource","mouseMoveTimeoutTimer","_this5$rootElement","endDragIfSourceWasRemovedFromDOM","_this$window2","HTML5Backend","MouseButtons","MouseButton","eventShouldStartDrag","isTouchEvent","lastTargetTouchFallback","getEventClientTouchOffset","supportsPassive","supported","_eventNames","_this$args$delay","scrollAngleRanges","getDropTargetElementsAtPoint","_this$args$ignoreCont","ignoreContextMenu","_this$args$enableHove","enableHoverOutsideTarget","_this$args$enableKeyb","enableKeyboardEvents","_this$args$enableMous","enableMouseEvents","_this$args$enableTouc","enableTouchEvents","touchSlop","_this$args$delayTouch","_this$args","_this$args2","delayTouchStart","_this$args$delayMouse","_this$args3","_this$args4","delayMouseStart","_this$context","_this$args5","mouse","move","touch","keyboard","keydown","TouchBackendImpl","moveStartSourceIds","_mouseClientOffset","waitingForDelay","handleTopMoveStart","_evt","x1","y1","x2","y2","_isScrolling","angleRanges","angle","atan2","PI","inAngleRanges","sqrt","installSourceNodeRemovalObserver","dragOverTargetNodes","targetNodes","elementsAtPoint","elementsFromPoint","elementsAtPointExtended","nodeId","orderedDragOverTargetIds","_getDropTargetId","ids","targetNode","eventShouldEndDrag","uninstallSourceNodeRemovalObserver","listenerTypes","isSetUp","getTopMoveStartHandler","handleTopMoveStartCapture","handleTopMove","handleTopMoveCapture","handleTopMoveEndCapture","handleCancelOnEscape","subject","listenerType","handleMoveStart","handleMove","coords","droppedOn","elementFromPoint","childMatch","handleTopMoveStartDelay","draggedSourceNode","draggedSourceNodeRemovalObserver","resurrectSourceNode","childList","disconnect","DndBackend","featurePreview","isActive","getSelectableColumns","selectableColumns","defaultColumns","showConfigPanel","setConfigPanel","toggleConfigPanel","changeLayout","inputEl","getColumnLayout","cols","newColumn","curLayout","BlockToolbarButton","BlockConfigPanel","listStyle","columnString","Columns","Column","serializedColumns","_getSelectableColumns2","NO_BLOCK_TYPE_FALLBACK","DefaultToolbar","Stylesheets","StylesheetType","css","rel","skipFocusDefault","ignoreClickEvent","showButton","parentBlock","focusLeader","dragIndex","hoverIndex","hoverBoundingRect","hoverMiddleY","bottom","hoverClientY","_useDrag2","drag","focusDescendant","clickBlockTargetRef","withBlockContext","_useMemo","click","getBlocksByRange","onCopy","onPaste","onUp","onDown","onWindowKeydown","dispatchKeydownEvent","RemoveButton","rootClassName","overflow","rootAttributes","InitSizeFunc","lastElement","marginBottom","postMessageFunc","scrollWidth","setCompiledHtmlFunc","addEditHistory","preserveBlockData","addDroppableFunc","eventDelegationFunc","_block$compiledHtml2","header","onSetCompiledHtml","onBeforeSetCompiledHtml","border","_ref3$scheme","_ref3$sandbox","sandbox","containerElRef","_useHtmlDataState","_block$compiledHtml","_rawHtmlData","setHtmlText","rawHtmlData","useHtmlDataState","_useHtmlDataState2","rawHtmlText","setHtmlData","_setSize","setSize","_containerElRef$curre","_history","hist0","hist1","setIframePreviewSize","getIframePreviewSize","setCompiledHtml","beforeRenderIframePreviewOpt","htmlText","_useState6","setSrc","rootAttributesObj","reader","FileReader","readAsDataURL","onload","_reader$result","onMessage","_containerEl$getRootN","containerEl","isDefaultSize","oldValue","getRootNode","MouseEvent","frameBorder","maxWidth","maxHeight","boxSizing","STYLE_HIDDEN","canRemoveBlock","scroll","destEl","rect","pageYOffset","offsetTop","scrollTo","behavior","resetCompiledHtml","_html","focusFirstBlock","focusItem","BlockItem","showPreview","_serializeChildBlocks","cancelOngoingCompilationHandlers","effectiveAddableBlockTypes","BlockIframePreview","previewHeader","serializeChildOpts","serializedBlocks","serializeChildBlocks","rootBlock","canceled","sourceHtml","timeoutId","entityReverseRegExp","removeControlCharacters","_parseContent","fallbackBlockType","domparser","_args2","metaRawValue","metaArray","filtered","newFromHtml","emptyBlocks","ancestor","childBlocks","findDescendantBlocksInternal","rootBlocks","foundCount","getBlocksByRangeInternal","parents","currentBlocks","startBlocks","findRange","mac","cmd","alt","ctrl","other","isMac","setPlatform","_platform","_Map","INIT_COORDS","BEGIN_DRAG","PUBLISH_DRAG_SOURCE","HOVER","DROP","END_DRAG","setClientOffset","sourceClientOffset","ResetCoordinatesAction","createBeginDrag","sourceIds","_options$publishSourc","getSource","verifyInvariants","getDraggableSource","verifyGetSourceClientOffsetIsFunction","verifyItemIsObject","pinSource","getSourceType","createPublishDragSource","matchesType","targetType","draggedItemType","createHover","targetIdsArg","verifyTargetIdsIsArray","targetIds","getTarget","checkInvariants","getTargetType","removeNonMatchingTargetIds","hoverAllTargets","createDrop","getDroppableTargets","dropResult","verifyDropResultType","determineDropResult","createEndDrag","verifyIsDragging","unpinSource","DragDropManagerImpl","handleRefCountChange","shouldSetUp","refCount","setup","teardown","subscribe","createDragDropActions","boundActions","actionCreator","formatProdErrorMessage","$$observable","observable","randomString","ActionTypes","INIT","PROBE_UNKNOWN_ACTION","isPlainObject","createStore","reducer","preloadedState","enhancer","currentReducer","currentState","currentListeners","nextListeners","isDispatching","ensureCanMutateNextListeners","isSubscribed","replaceReducer","nextReducer","outerSubscribe","observeState","unsubscribe","strictEquality","initialState","initialSourceClientOffset","initialClientOffset","offsetA","offsetB","ADD_SOURCE","ADD_TARGET","REMOVE_SOURCE","REMOVE_TARGET","NONE","ALL","_action$payload","_action$payload$targe","_action$payload$prevT","prevTargetIds","xor","isEqual","areArraysEqual","prevInnermostTargetId","innermostTargetId","dirtyHandlerIds","dragOffset","dragOperation","stateId","subtract","__IS_NONE__","__IS_ALL__","HandlerRole","DragDropMonitorImpl","prevStateId","currentStateId","canSkipListener","dirtyIds","commonIds","areDirty","previousState","shallow","nextUniqueId","validateType","allowArray","scope","BrowserMutationObserver","makeRequestCallFromTimer","handleTimer","intervalHandle","clearInterval","makeRequestCall","RawTask","asapQueue","enqueueTask","requestFlush","flushing","pendingErrors","capacity","currentIndex","scan","newLength","registerPendingError","requestErrorThrow","taskFactory","tasks","freeTasks","getNextHandlerId","role","SOURCE","parseRoleFromHandlerId","mapContainsValue","isDone","_entries$next","HandlerRegistryImpl","dragSources","dropTargets","pinnedSourceId","pinnedSource","validateSourceContract","addHandler","validateTargetContract","includePinned","isSourceId","isTargetId","createDragDropManager","backendFactory","backendOptions","debugMode","reduxDevTools","__REDUX_DEVTOOLS_EXTENSION__","instanceId","makeStoreInstance","receiveBackend","_excluded","_objectWithoutProperties","excluded","sourceKeys","sourceSymbolKeys","INSTANCE_SYM","DndProvider","_getDndContextValue","getGlobalContext","ctx","createSingletonDndContext","isGlobalInstance","getDndContextValue","_getDndContextValue2","_focusedIds","_setFocusedIds","focusedIdsRef","arrayEquals","editorEl","startId","onEditorMousedown","_ev$target$closest","mtBlockEditorBlockId","onEditorMouseup","_ev$target$closest2","endId","onBlockEditorCommand","addButtons","BlockFactory","allTypes","selectable","registered","NO_GROUP","EditManager","histories","ignore","_add","emitChange","merged","_nextFocusBlock$id","nextFocusBlock","OVERLAY_CLASS_NAME","PORTAL_STYLE","_ref$onClose","onClose","portal","onKeydown","DialogContext","Dialog","modalRef","modalEl","Overlay","DialogHeader","_useContext$onClose","DialogBody","DialogFooter","Html","linkUrl","linkTarget","linkTitle","caption","isLinkDialogOpen","setLinkDialogOpen","formRef","iconLink","_form$querySelector","Image","File","pluginsSettings","grandChildren","Table","fullWidth","TableForTinyMCE","Horizontalrule","registerType","isTextSelected","isCollapsed","isClipboardAPIAvailable","_navigator$clipboard2","writeText","_block$wrapperRef$cur","_editor","htmlBlob","plainBlob","_block$wrapperRef$cur2","toClipboardItem","acc","ClipboardItem","_ref$editorContext","confirm","registerCommand","copyBlock","pasteBlock","duplicateBlock","deleteBlock","insertLink","_buildKeyboardShortcutCache","inputElement","buildKeyboardShortcutCache","keyboardShortcutCache","buildStylesheets","initialized","typeIds","editHandlersAdd","before","canMerge","editHandlersRemove","editHandlersSwap","metadataReverseMap","metadataMap","stringArray","targetMap","reusableIds","_step2$value","_Object$keys","metadataMapSequence","metaSetup","keysForSetup","metaStrings","getMetadataMapIndexes","App","resetCss","EditorManager","editors","_remove","_instance","EditorUtil","_unload","_apply","_classStaticPrivateFieldSpecGet","_eventHandlers","optsI18n","initI18n","deregisterType","BoilerplateBlock","decorator","Hook","util","MTBlockEditor"],"sourceRoot":""} \ No newline at end of file diff --git a/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.5/mt-block-editor.css b/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.7/mt-block-editor.css similarity index 61% rename from mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.5/mt-block-editor.css rename to mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.7/mt-block-editor.css index 99a47c0..230b2dc 100644 --- a/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.5/mt-block-editor.css +++ b/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.7/mt-block-editor.css @@ -1,2 +1,2 @@ -.mt-block-editor-overlay-open{overflow:hidden}.mt-block-editor .mt-be-app{font-size:medium;padding:0 40px}.mt-block-editor blockquote,.mt-block-editor h1,.mt-block-editor h2,.mt-block-editor h3,.mt-block-editor h4,.mt-block-editor h5,.mt-block-editor h6,.mt-block-editor ol,.mt-block-editor p,.mt-block-editor pre,.mt-block-editor ul{font-family:inherit;font-size:inherit;line-height:inherit;margin:0;word-break:break-all}.mt-block-editor .mt-be-btn-default{background-color:#fff;border:1px solid #ddd;border-radius:3px;color:#333;cursor:pointer;font-size:14px;padding:6px 12px}.mt-block-editor .mt-be-btn-default:hover{background-color:#f5f5f5}.mt-block-editor .mt-be-btn-primary{background-color:#fff;border:1px solid #ddd;border-radius:3px;color:#333;cursor:pointer;font-size:14px;padding:6px 12px}.mt-block-editor .mt-be-btn-primary:hover{background-color:#f5f5f5}.mt-block-editor .mt-be-btn-primary{background-color:#337ab7;color:#fff}.mt-block-editor .mt-be-btn-primary:hover{background-color:#286090}.mt-block-editor .mt-be-btn-add{background-color:transparent;border:0;color:#666;display:block;font-size:11px;padding:8px 0;transition:.1s;width:100%}.mt-block-editor .mt-be-btn-add:focus{background-color:#eee;outline:none}.mt-block-editor .mt-be-btn-add:hover{background-color:#eee;cursor:pointer}.mt-block-editor .mt-be-btn-command{align-items:baseline;background-color:transparent;border:0;color:#666;display:flex;font-size:12px;justify-content:space-between}.mt-block-editor .mt-be-btn-command span{text-transform:capitalize;white-space:nowrap}@media (min-width:991.5px){.mt-block-editor .mt-be-btn-command{min-width:130px;padding:12px 13px}.mt-block-editor .mt-be-btn-command:focus,.mt-block-editor .mt-be-btn-command:hover{background-color:#eee;cursor:pointer;outline:none}.mt-block-editor .mt-be-btn-command img{margin-right:4px;vertical-align:text-top;width:13px}}@media (max-width:991.5px){.mt-block-editor .mt-be-btn-command{height:40px;line-height:40px;padding:0;width:100%}.mt-block-editor .mt-be-btn-command img{display:none}}.mt-block-editor .mt-be-btn-add-bottom{position:relative;width:100%}.mt-block-editor .mt-be-btn-add-bottom .mt-be-btn-wrap{display:flex;position:relative;width:100%}.mt-block-editor .mt-be-btn-add-bottom .mt-be-btn-wrap.mt-be-btn-wrap--only-shortcuts .mt-be-btn-add{display:none}@media (min-width:991.5px){.mt-block-editor .mt-be-btn-add-bottom .mt-be-btn-wrap.mt-be-btn-wrap--only-shortcuts{display:inline-block;width:auto}.mt-block-editor .mt-be-btn-add-bottom .mt-be-btn-wrap.mt-be-btn-wrap--only-shortcuts .mt-be-shortcut-block-list:after{width:0}}@media (max-width:991.5px){.mt-block-editor .mt-be-btn-add-bottom .mt-be-btn-wrap.mt-be-btn-wrap--only-shortcuts .mt-be-shortcut-block-list:after{height:0}}.mt-block-editor .mt-be-btn-add-bottom .mt-be-btn-wrap:after{background-image:linear-gradient(90deg,#999,#999 2px,transparent 0,transparent 5px),linear-gradient(90deg,#999,#999 2px,transparent 0,transparent 5px),linear-gradient(180deg,#999,#999 2px,transparent 0,transparent 5px),linear-gradient(180deg,#999,#999 2px,transparent 0,transparent 5px);background-position:0 0,0 100%,0 0,100% 0;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;background-size:5px 1px,5px 1px,1px 5px,1.1px 5px;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:999}.mt-block-editor .mt-be-btn-remove{background:none;background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath d='M8.3 43.1c0 2.3 1.9 4.2 4.2 4.2h25.1c2.3 0 4.2-1.9 4.2-4.2V13.9H8.3v29.2zM32 20.8c0-.8.6-1.4 1.4-1.4s1.4.6 1.4 1.4v19.5c0 .8-.6 1.4-1.4 1.4s-1.4-.6-1.4-1.4V20.8zm-8.4 0c0-.8.6-1.4 1.4-1.4s1.4.6 1.4 1.4v19.5c0 .8-.6 1.4-1.4 1.4s-1.4-.6-1.4-1.4V20.8zm-8.4 0c0-.8.6-1.4 1.4-1.4.8 0 1.4.6 1.4 1.4v19.5c0 .8-.6 1.4-1.4 1.4-.8 0-1.4-.6-1.4-1.4V20.8zM43.1 5.5H32.7l-.8-1.6c-.4-.7-1.1-1.2-1.9-1.2H20c-.8 0-1.5.4-1.9 1.2l-.8 1.6H6.9c-.8 0-1.4.6-1.4 1.4v2.8c0 .8.6 1.4 1.4 1.4h36.2c.8 0 1.4-.6 1.4-1.4V6.9c0-.8-.6-1.4-1.4-1.4z' style='fill:%23666'/%3E%3C/svg%3E") no-repeat;background-size:20px;border:none;color:#666;content:"";cursor:pointer;font-size:11px;height:20px;width:20px}.mt-block-editor .mt-be-btn-move{background:none;background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M13 8c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1zM5 6c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1zm0 4c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1zm8 0c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1zM9 6c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1zm0 4c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z' style='fill:%23666'/%3E%3C/svg%3E") no-repeat;background-size:18px;border:none;cursor:move;height:18px;width:18px}.mt-block-editor .mt-be-btn-up{background:none;background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m9 4.5-5.7 5.6 1.5 1.4L9 7.3l4.2 4.2 1.5-1.4z' style='fill:%23666'/%3E%3C/svg%3E") no-repeat;background-size:18px;border:none;cursor:pointer;height:18px;width:18px}.mt-block-editor .mt-be-btn-command-panel{background:none;border:none;cursor:pointer;height:18px;width:18px}.mt-block-editor .mt-be-btn-command-panel:before{color:#000;content:"…"}.mt-block-editor .mt-be-btn-down{background:none;background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m9 13.5 5.7-5.6-1.5-1.4L9 10.7 4.8 6.5 3.3 7.9z' style='fill:%23666'/%3E%3C/svg%3E") no-repeat;background-size:18px;border:none;cursor:pointer;height:18px;width:18px}.mt-block-editor .mt-be-block-wrapper{align-items:flex-start;display:flex;position:relative}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-add{transition:.1s}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-remove-wrapper{display:flex;flex-direction:column;position:absolute;right:-30px;top:calc(50% - 18px);visibility:hidden}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-remove-wrapper button{transition:.1s}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-remove-wrapper button:hover{opacity:.5}.mt-block-editor .mt-be-block-wrapper.mt-be-focus-leader>.mt-be-btn-remove-wrapper{visibility:visible;z-index:50}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-move-wrapper{display:flex;flex-direction:column;height:50px;left:-30px;position:absolute;top:calc(50% - 35px);visibility:hidden}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-move-wrapper .mt-be-btn-down,.mt-block-editor .mt-be-block-wrapper .mt-be-btn-move-wrapper .mt-be-btn-move,.mt-block-editor .mt-be-block-wrapper .mt-be-btn-move-wrapper .mt-be-btn-up{transition:.1s}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-move-wrapper .mt-be-btn-down:hover,.mt-block-editor .mt-be-block-wrapper .mt-be-btn-move-wrapper .mt-be-btn-move:hover,.mt-block-editor .mt-be-block-wrapper .mt-be-btn-move-wrapper .mt-be-btn-up:hover{opacity:.3}.mt-block-editor .mt-be-block-wrapper.mt-be-focus-leader>.mt-be-btn-move-wrapper{visibility:visible}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-add-wrapper{cursor:pointer;display:block;height:40px;position:absolute;top:-20px;width:100%}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-add-wrapper .mt-be-btn-add{background-color:transparent;opacity:0;position:relative;text-align:left;transition:.1s;width:100%}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-add-wrapper .mt-be-btn-add:before{color:#666;content:"+";font-size:32px;font-weight:700;height:32px;left:calc(50% - 16px);line-height:32px;padding:0 2px;position:absolute;text-align:center;text-shadow:4px 4px 0 #fff,-4px -4px 0 #fff,-4px 4px 0 #fff,4px -4px 0 #fff,0 4px 0 #fff,0 -4px 0 #fff,-4px 0 0 #fff,4px 0 0 #fff;top:-4px;transition:.1s;width:32px;z-index:400}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-add-wrapper .mt-be-btn-add:after{background-size:0,5px 1px,0,0;z-index:-1}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-add-wrapper .mt-be-btn-add:hover{opacity:1}.mt-block-editor .mt-be-block{margin-bottom:16px;padding:8px;position:relative;transition:.1s;width:100%}.mt-block-editor .mt-be-block:focus,.mt-block-editor .mt-be-block:focus-within,.mt-block-editor .mt-be-block:hover{box-shadow:0 0 3px 0 rgba(0,0,0,.4)}.mt-block-editor .mt-be-block .mt-be-input-container{border:1px solid #767676;border-radius:3px;padding:6px}.mt-block-editor .mt-be-block .mt-be-input{font-size:16px;font-weight:400;margin-top:4px;padding:6px}.mt-block-editor .mt-be-block .mt-be-input:focus{outline:3px auto #ddd;outline-offset:-2px}.mt-block-editor .mt-be-block .mt-be-input--static{font-size:16px;font-weight:400;margin-top:4px;padding:6px}.mt-block-editor .mt-be-block .mt-be-input--static:focus{outline:3px auto #ddd;outline-offset:-2px}.mt-block-editor .mt-be-block .mt-be-input--static{display:inline-block;margin-top:10px}.mt-block-editor .mt-be-block .mt-be-input--full-width{width:calc(100% - 2px)!important}.mt-block-editor .mt-be-block .mt-be-label-name{color:#666;display:inline-block;font-family:inherit;font-size:12px;font-weight:400;line-height:normal;margin-bottom:20px;width:100%}.mt-block-editor .mt-be-block .mt-be-label-name>input,.mt-block-editor .mt-be-block .mt-be-label-name>select,.mt-block-editor .mt-be-block .mt-be-label-name>textarea{font-size:16px;font-weight:400;margin-top:4px;padding:6px}.mt-block-editor .mt-be-block .mt-be-label-name>input:focus,.mt-block-editor .mt-be-block .mt-be-label-name>select:focus,.mt-block-editor .mt-be-block .mt-be-label-name>textarea:focus{outline:3px auto #ddd;outline-offset:-2px}.mt-block-editor .mt-be-block .mt-be-label-name>input,.mt-block-editor .mt-be-block .mt-be-label-name>select,.mt-block-editor .mt-be-block .mt-be-label-name>textarea{width:calc(100% - 2px)!important}.mt-block-editor .mt-be-block .mt-be-label-name+.mt-be-input,.mt-block-editor .mt-be-block .mt-be-label-name+.mt-be-input-container{display:block;margin-top:-16px}.mt-block-editor .mt-be-block .mt-be-content-label{background:#fff;color:#666;font-size:12px;left:4px;opacity:0;padding:0 5px;pointer-events:none;position:absolute;top:-9px;transition:.1s}.mt-block-editor .mt-be-block:hover>.mt-be-content-label{opacity:1}.mt-block-editor .mt-be-block hr{border-top:1px solid #666}.mt-block-editor .mt-be-block-wrapper .mt-be-block .mt-be-btn-move-wrapper{left:-40px}.mt-block-editor .mt-be-block-list-wrapper{display:flex;justify-content:center;left:calc(50% - 144px);position:absolute;top:20px;transition:.1s ease-in-out;z-index:1100}.mt-block-editor .mt-be-block-list-wrapper.mt-be-block-list-wrapper-none{display:none}.mt-block-editor .mt-be-block-list-wrapper.mt-be-block-list-wrapper-enter,.mt-block-editor .mt-be-block-list-wrapper.mt-be-block-list-wrapper-exit{opacity:0}.mt-block-editor .mt-be-block-list-wrapper.mt-be-block-list-wrapper-enter-active,.mt-block-editor .mt-be-block-list-wrapper.mt-be-block-list-wrapper-enter-done{opacity:1;top:32px}.mt-block-editor .mt-be-block-list-wrapper .mt-be-block-list{grid-gap:1px;background:#fff;display:grid;grid-template-columns:repeat(3,1fr);margin:0;outline:1px solid #ddd;padding:0;width:290px}.mt-block-editor .mt-be-block-list-wrapper .mt-be-block-list li{height:84px;list-style:none;margin:0;outline:1px solid #eee}.mt-block-editor .mt-be-block-list-wrapper .mt-be-block-list li button{align-items:center;background-color:transparent;border:none;color:#333;display:flex;font-size:8px;height:100%;justify-content:center;padding:8px;text-align:center;text-decoration:none;transition:.1s;width:100%}.mt-block-editor .mt-be-block-list-wrapper .mt-be-block-list li button:hover{background-color:#eee}.mt-block-editor .mt-be-block-list-wrapper .mt-be-block-list li button img{height:20px;margin-bottom:8px;width:20px}.mt-block-editor .mt-be-block-list-wrapper .mt-be-block-list li button span{display:block}.mt-block-editor .mt-be-shortcut-block-list{display:flex;margin:0;padding:0;position:relative}.mt-block-editor .mt-be-shortcut-block-list:after{background-color:#ddd;content:"";height:28px;position:absolute;right:-1px;top:7px;width:1px}.mt-block-editor .mt-be-shortcut-block-list li{list-style:none;margin:0}.mt-block-editor .mt-be-shortcut-block-list li button{background-color:transparent;border:none;display:block;height:40px;line-height:40px;padding:2px 10px;position:relative;transition:.1s}.mt-block-editor .mt-be-shortcut-block-list li button:hover{background-color:#eee}.mt-block-editor .mt-be-shortcut-block-list li button img{height:16px;vertical-align:inherit;width:16px}.mt-block-editor .mt-be-focus .mt-be-block{outline:2px solid #337ab7}.mt-block-editor .mt-be-focus .mt-be-block .mt-be-block{outline:none}.mt-block-editor .mt-be-droppable:before{background-color:rgba(21,50,76,.9);color:#fff;content:" ";display:block;height:100%;left:0;pointer-events:none;position:absolute;text-align:center;top:0;width:100%;z-index:200}.mt-block-editor .mt-be-label-block{font-weight:700}.mt-block-editor .mt-be-help-block{color:#737373;font-weight:400}.mt-block-editor .mt-be-columns .mt-be-column{flex-basis:50%;padding:0 15px;position:relative}.mt-block-editor .mt-be-columns .mt-be-column:first-child{padding-left:0}.mt-block-editor .mt-be-columns .mt-be-column:last-child{padding-right:0}.mt-block-editor .mt-be-block-toolbar{background:#fff;border:1px solid #ddd;left:-8px;position:absolute;top:-39px;width:-moz-max-content;width:max-content;z-index:1000}.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--no-border{border:none}.mt-block-editor .mt-be-block-toolbar .mt-be-block-toolbar-button{background:transparent;border:none;cursor:pointer;height:32px;padding:0;transition:.1s;width:32px}.mt-block-editor .mt-be-block-toolbar .mt-be-block-toolbar-button img{height:16px;left:-1px;position:relative;top:-2px;width:16px}.mt-block-editor .mt-be-block-toolbar .mt-be-block-toolbar-button:hover{background-color:#eee}.mt-block-editor .mt-be-block-toolbar .mt-be-block-toolbar-button:focus{outline:none}.mt-block-editor .mt-be-block-toolbar .mce-tinymce{box-shadow:none}.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--x2{left:-1px;top:-70px}.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--default{display:none}.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--mt-rich-text-editor{border:1px solid #ddd;border-radius:4px;left:-1px;top:-43px}.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--mt-rich-text-editor.mt-be-block-toolbar--x2{top:-85px}.mt-block-editor .mt-be-block-toolbar-default-items{display:none}.mt-block-editor .mt-be-block-config-panel{background:hsla(0,0%,100%,.9);border:1px solid #ddd;color:#666;font-size:12px;height:auto;left:0;padding:12px;position:absolute;top:-4px;transition:.1s ease-in-out;width:auto;z-index:1000}.mt-block-editor .mt-be-block-config-panel.mt-be-block-config-panel-enter,.mt-block-editor .mt-be-block-config-panel.mt-be-block-config-panel-exit{opacity:0}.mt-block-editor .mt-be-block-config-panel.mt-be-block-config-panel-enter-active,.mt-block-editor .mt-be-block-config-panel.mt-be-block-config-panel-enter-done{opacity:1}.mt-block-editor .mt-be-block-config-panel ul{margin:0;padding:0}.mt-block-editor .mt-be-block-config-panel ul li{margin-right:12px}.mt-block-editor .mt-be-block-config-panel ul li label{cursor:pointer}.mt-block-editor .mt-be-block-config-panel ul li input{cursor:pointer;margin-right:4px}.mt-block-editor .mt-be-block-command-panel{background:#fff;border:1px solid #ddd;color:#666;height:auto;position:absolute;right:20px;top:-4px;transition:opacity .1s ease-in-out;width:auto;z-index:2000}.mt-block-editor .mt-be-block-command-panel.mt-be-block-command-panel-enter,.mt-block-editor .mt-be-block-command-panel.mt-be-block-command-panel-exit{opacity:0}.mt-block-editor .mt-be-block-command-panel.mt-be-block-command-panel-enter-active,.mt-block-editor .mt-be-block-command-panel.mt-be-block-command-panel-exit-done{opacity:1}.mt-block-editor .mt-be-block-command-panel[data-mt-be-block-command-panel-placement=bottom]{right:unset;top:55px}.mt-block-editor .mt-be-block-command-panel .mt-be-command-list{list-style:none;margin:0;padding:0}.mt-block-editor .mt-be-block-command-panel .mt-be-btn-add{text-align:left}.mt-block-editor .visible{visibility:visible}.mt-block-editor .invisible{visibility:hidden}.mt-block-editor .mt-be-input--hidden{border:none;height:1px;margin:0;padding:0;position:absolute;width:1px}.mt-block-editor .mce-edit-focus{outline:0!important}.mt-block-editor .mce-content-body{font-family:inherit;line-height:inherit}.mt-block-editor .mce-content-body table:not(.mce-item-table) tbody,.mt-block-editor .mce-content-body table:not(.mce-item-table) td,.mt-block-editor .mce-content-body table:not(.mce-item-table) tfoot,.mt-block-editor .mce-content-body table:not(.mce-item-table) th,.mt-block-editor .mce-content-body table:not(.mce-item-table) thead,.mt-block-editor .mce-content-body table:not(.mce-item-table) tr{border-width:1px}.mt-block-editor .mce-item-table{width:100%}.mt-block-editor .mt-be-overlay{align-items:center;background:hsla(0,0%,100%,.5);display:flex;height:100%;justify-content:center;left:0;overflow:scroll;position:fixed;top:0;width:100%}.mt-block-editor .mt-be-overlay .mt-be-dialog{transition:.3s ease-in-out}.mt-block-editor .mt-be-overlay.mt-be-overlay-enter .mt-be-dialog{margin-top:-128px;opacity:0}.mt-block-editor .mt-be-overlay.mt-be-overlay-enter-active .mt-be-dialog,.mt-block-editor .mt-be-overlay.mt-be-overlay-exit .mt-be-dialog{margin-top:0;opacity:1}.mt-block-editor .mt-be-overlay.mt-be-overlay-exit-active .mt-be-dialog{margin-top:-128px;opacity:0}.mt-block-editor .mt-be-overlay .mt-be-dialog-content{background:#fff;border-radius:6px;box-shadow:0 5px 15px rgba(0,0,0,.5);max-width:600px;width:600px}.mt-block-editor .mt-be-overlay .mt-be-dialog-header{border-bottom:1px solid #ddd;display:flex;justify-content:space-between;padding:10px}.mt-block-editor .mt-be-overlay .mt-be-dialog-btn-close{background:#fff;border:0;color:#000;font-size:21px;font-weight:700;line-height:1;opacity:.2;text-shadow:0 1px 0 #fff}.mt-block-editor .mt-be-overlay .mt-be-dialog-btn-close:hover{opacity:.5}.mt-block-editor .mt-be-overlay .mt-be-dialog-title{font-size:19.2px;font-weight:400;margin:0}.mt-block-editor .mt-be-overlay .mt-be-dialog-body{padding:10px}.mt-block-editor .mt-be-overlay .mt-be-dialog-footer{border-top:1px solid #ddd;padding:10px;text-align:right}.mt-block-editor .mt-be-overlay .mt-be-dialog-footer button+button{margin-left:5px}.mt-block-editor .mt-be-overlay .mt-be-label-name{align-items:center;display:flex;margin-bottom:.9rem}.mt-block-editor .mt-be-overlay .mt-be-label-name .mt-be-label-block{max-width:25%;padding:0 15px;text-align:right;white-space:nowrap;width:25%}.mt-block-editor .mt-be-overlay .mt-be-label-name .mt-be-input{font-size:16px;font-weight:400;margin-top:4px;padding:6px}.mt-block-editor .mt-be-overlay .mt-be-label-name .mt-be-input:focus{outline:3px auto #ddd;outline-offset:-2px}.mt-block-editor .mt-be-overlay .mt-be-label-name .mt-be-input{border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgb(0 0 0/8%);height:34px;margin:0 15px;width:75%}@media (max-width:991.5px){.mt-block-editor .mt-be-app{margin:0 16px;padding:0}.mt-block-editor .mt-be-btn-command-panel{height:34px;position:relative;width:32px}.mt-block-editor .mt-be-btn-command-panel:before{display:inline-flex;font-size:18px;justify-content:center;position:relative;top:-5px}.mt-block-editor .mt-be-btn-move{background-position:50%;height:28px}.mt-block-editor .mt-be-btn-down,.mt-block-editor .mt-be-btn-up{background-position:50%;background-size:22px;border-right:1px solid #ddd;height:35px;padding:12px;width:34px}.mt-block-editor .mt-be-block-toolbar--mt-rich-text-editor .mt-be-btn-down,.mt-block-editor .mt-be-block-toolbar--mt-rich-text-editor .mt-be-btn-up{height:40px;width:34px}.mt-block-editor .mt-be-btn-add{font-size:12px;height:40px;line-height:40px;padding:0}.mt-block-editor .mt-be-btn-add:before{font-size:12px;height:28px;line-height:28px}.mt-block-editor .mt-be-btn-add-bottom .mt-be-btn-wrap{flex-direction:column-reverse}.mt-block-editor .mt-be-shortcut-block-list{justify-content:center}.mt-block-editor .mt-be-shortcut-block-list li button{padding:6px 12px}.mt-block-editor .mt-be-shortcut-block-list li button img{height:24px;width:24px}.mt-block-editor .mt-be-shortcut-block-list:after{height:1px;left:8px;top:0;width:calc(100% - 18px);z-index:200}.mt-block-editor .mt-be-block .mt-be-content-label{font-size:12px}.mt-block-editor .mt-be-block-toolbar{border:0;left:0;width:100%!important}.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--default{display:block;height:32px}.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--tinymce,.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--tinymce .mce-container-body,.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--tinymce .mce-tinymce{width:100%!important}.mt-block-editor .mt-be-block-toolbar .mce-container-body.mce-flow-layout{display:flex;flex-direction:row;flex-wrap:wrap}.mt-block-editor .mt-be-block-toolbar .mt-be-block-toolbar-button{border:1px solid #ddd}.mt-block-editor .mt-be-columns .mt-be-block-toolbar.mt-be-block-toolbar--tinymce,.mt-block-editor .mt-be-columns .mt-be-block-toolbar.mt-be-block-toolbar--tinymce .mce-container-body,.mt-block-editor .mt-be-columns .mt-be-block-toolbar.mt-be-block-toolbar--tinymce .mce-tinymce{max-width:calc(100vw - 15px)!important}.mt-block-editor .mt-be-block-toolbar-default-items{background-color:#fff;border:1px solid #ddd;bottom:0;display:inline;height:36px;position:absolute;right:0;z-index:3}.mt-block-editor .mt-be-block-toolbar--mt-rich-text-editor .mt-be-block-toolbar-default-items{border-width:0 1px;height:39px}.mt-block-editor .mt-be-block-toolbar--tinymce .mce-btn-group:not(:first-child){border-left:0}.mt-block-editor .mt-be-block-toolbar--tinymce .mt-be-block-toolbar-default-items{background-color:transparent;border:0;bottom:0;right:0}.mt-block-editor .mt-be-block-toolbar--tinymce .mt-be-block-toolbar-default-items .mt-be-btn-down,.mt-block-editor .mt-be-block-toolbar--tinymce .mt-be-block-toolbar-default-items .mt-be-btn-up{border-right:0;width:26px}.mt-block-editor .mt-be-block-wrapper{margin:10px 0}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-add-wrapper,.mt-block-editor .mt-be-block-wrapper .mt-be-btn-move-wrapper,.mt-block-editor .mt-be-block-wrapper .mt-be-btn-remove-wrapper{display:none}.mt-block-editor .mt-be-block-list-wrapper .mt-be-block-list li button{font-size:12px;line-height:1}.mt-block-editor .mt-be-block-list-wrapper .mt-be-block-list li button img{height:24px;margin-bottom:8px;width:24px}.mt-block-editor .mt-be-block-list-wrapper:not(.mt-be-block-list-wrapper--bottom){position:fixed}.mt-block-editor .mt-be-block-command-panel{padding:4px 12px;right:0;top:-4px}.mt-block-editor .mt-be-overlay .mt-be-dialog-content{width:calc(100vw - 32px)}.mt-block-editor .mt-be-overlay .mt-be-label-name .mt-be-label-block{width:200px}} +.mt-block-editor-overlay-open{overflow:hidden}.mt-block-editor .mt-be-app{font-size:medium;padding:0 40px}.mt-block-editor blockquote,.mt-block-editor h1,.mt-block-editor h2,.mt-block-editor h3,.mt-block-editor h4,.mt-block-editor h5,.mt-block-editor h6,.mt-block-editor ol,.mt-block-editor p,.mt-block-editor pre,.mt-block-editor ul{font-family:inherit;font-size:inherit;line-height:inherit;margin:0;word-break:break-all}.mt-block-editor .mt-be-btn-default{background-color:#fff;border:1px solid #ddd;border-radius:3px;color:#333;cursor:pointer;font-size:14px;padding:6px 12px}.mt-block-editor .mt-be-btn-default:hover{background-color:#f5f5f5}.mt-block-editor .mt-be-btn-primary{background-color:#fff;border:1px solid #ddd;border-radius:3px;color:#333;cursor:pointer;font-size:14px;padding:6px 12px}.mt-block-editor .mt-be-btn-primary:hover{background-color:#f5f5f5}.mt-block-editor .mt-be-btn-primary{background-color:#337ab7;color:#fff}.mt-block-editor .mt-be-btn-primary:hover{background-color:#286090}.mt-block-editor .mt-be-btn-add{background-color:transparent;border:0;color:#666;display:block;font-size:11px;padding:8px 0;transition:.1s;width:100%}.mt-block-editor .mt-be-btn-add:focus{background-color:#eee;outline:none}.mt-block-editor .mt-be-btn-add:hover{background-color:#eee;cursor:pointer}.mt-block-editor .mt-be-btn-command{align-items:baseline;background-color:transparent;border:0;color:#666;display:flex;font-size:12px;justify-content:space-between}.mt-block-editor .mt-be-btn-command span{text-transform:capitalize;white-space:nowrap}@media (min-width:991.5px){.mt-block-editor .mt-be-btn-command{min-width:130px;padding:12px 13px}.mt-block-editor .mt-be-btn-command:focus,.mt-block-editor .mt-be-btn-command:hover{background-color:#eee;cursor:pointer;outline:none}.mt-block-editor .mt-be-btn-command img{margin-right:4px;vertical-align:text-top;width:13px}}@media (max-width:991.5px){.mt-block-editor .mt-be-btn-command{height:40px;line-height:40px;padding:0;width:100%}.mt-block-editor .mt-be-btn-command img{display:none}}.mt-block-editor .mt-be-btn-add-bottom{position:relative;width:100%}.mt-block-editor .mt-be-btn-add-bottom .mt-be-btn-wrap{display:flex;position:relative;width:100%}.mt-block-editor .mt-be-btn-add-bottom .mt-be-btn-wrap.mt-be-btn-wrap--only-shortcuts .mt-be-btn-add{display:none}@media (min-width:991.5px){.mt-block-editor .mt-be-btn-add-bottom .mt-be-btn-wrap.mt-be-btn-wrap--only-shortcuts{display:inline-block;width:auto}.mt-block-editor .mt-be-btn-add-bottom .mt-be-btn-wrap.mt-be-btn-wrap--only-shortcuts .mt-be-shortcut-block-list:after{width:0}}@media (max-width:991.5px){.mt-block-editor .mt-be-btn-add-bottom .mt-be-btn-wrap.mt-be-btn-wrap--only-shortcuts .mt-be-shortcut-block-list:after{height:0}}.mt-block-editor .mt-be-btn-add-bottom .mt-be-btn-wrap:after{background-image:linear-gradient(90deg,#999,#999 2px,transparent 0,transparent 5px),linear-gradient(90deg,#999,#999 2px,transparent 0,transparent 5px),linear-gradient(180deg,#999,#999 2px,transparent 0,transparent 5px),linear-gradient(180deg,#999,#999 2px,transparent 0,transparent 5px);background-position:0 0,0 100%,0 0,100% 0;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;background-size:5px 1px,5px 1px,1px 5px,1.1px 5px;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:999}.mt-block-editor .mt-be-btn-remove{background:none;background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath d='M8.3 43.1c0 2.3 1.9 4.2 4.2 4.2h25.1c2.3 0 4.2-1.9 4.2-4.2V13.9H8.3v29.2zM32 20.8c0-.8.6-1.4 1.4-1.4s1.4.6 1.4 1.4v19.5c0 .8-.6 1.4-1.4 1.4s-1.4-.6-1.4-1.4V20.8zm-8.4 0c0-.8.6-1.4 1.4-1.4s1.4.6 1.4 1.4v19.5c0 .8-.6 1.4-1.4 1.4s-1.4-.6-1.4-1.4V20.8zm-8.4 0c0-.8.6-1.4 1.4-1.4.8 0 1.4.6 1.4 1.4v19.5c0 .8-.6 1.4-1.4 1.4-.8 0-1.4-.6-1.4-1.4V20.8zM43.1 5.5H32.7l-.8-1.6c-.4-.7-1.1-1.2-1.9-1.2H20c-.8 0-1.5.4-1.9 1.2l-.8 1.6H6.9c-.8 0-1.4.6-1.4 1.4v2.8c0 .8.6 1.4 1.4 1.4h36.2c.8 0 1.4-.6 1.4-1.4V6.9c0-.8-.6-1.4-1.4-1.4z' style='fill:%23666'/%3E%3C/svg%3E") no-repeat;background-size:20px;border:none;color:#666;content:"";cursor:pointer;font-size:11px;height:20px;width:20px}.mt-block-editor .mt-be-btn-move{background:none;background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M13 8c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1zM5 6c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1zm0 4c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1zm8 0c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1zM9 6c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1zm0 4c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z' style='fill:%23666'/%3E%3C/svg%3E") no-repeat;background-size:18px;border:none;cursor:move;height:18px;width:18px}.mt-block-editor .mt-be-btn-up{background:none;background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m9 4.5-5.7 5.6 1.5 1.4L9 7.3l4.2 4.2 1.5-1.4z' style='fill:%23666'/%3E%3C/svg%3E") no-repeat;background-size:18px;border:none;cursor:pointer;height:18px;width:18px}.mt-block-editor .mt-be-btn-command-panel{background:none;border:none;cursor:pointer;height:18px;width:18px}.mt-block-editor .mt-be-btn-command-panel:before{color:#000;content:"…"}.mt-block-editor .mt-be-btn-down{background:none;background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m9 13.5 5.7-5.6-1.5-1.4L9 10.7 4.8 6.5 3.3 7.9z' style='fill:%23666'/%3E%3C/svg%3E") no-repeat;background-size:18px;border:none;cursor:pointer;height:18px;width:18px}.mt-block-editor .mt-be-block-wrapper{align-items:flex-start;display:flex;position:relative}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-add{transition:.1s}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-remove-wrapper{display:flex;flex-direction:column;position:absolute;right:-30px;top:calc(50% - 18px);visibility:hidden}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-remove-wrapper button{transition:.1s}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-remove-wrapper button:hover{opacity:.5}.mt-block-editor .mt-be-block-wrapper.mt-be-focus-leader>.mt-be-btn-remove-wrapper{visibility:visible;z-index:50}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-move-wrapper{display:flex;flex-direction:column;height:50px;left:-30px;position:absolute;top:calc(50% - 35px);visibility:hidden}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-move-wrapper .mt-be-btn-down,.mt-block-editor .mt-be-block-wrapper .mt-be-btn-move-wrapper .mt-be-btn-move,.mt-block-editor .mt-be-block-wrapper .mt-be-btn-move-wrapper .mt-be-btn-up{transition:.1s}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-move-wrapper .mt-be-btn-down:hover,.mt-block-editor .mt-be-block-wrapper .mt-be-btn-move-wrapper .mt-be-btn-move:hover,.mt-block-editor .mt-be-block-wrapper .mt-be-btn-move-wrapper .mt-be-btn-up:hover{opacity:.3}.mt-block-editor .mt-be-block-wrapper.mt-be-focus-leader>.mt-be-btn-move-wrapper{visibility:visible}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-add-wrapper{cursor:pointer;display:block;height:40px;position:absolute;top:-20px;width:100%}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-add-wrapper .mt-be-btn-add{background-color:transparent;opacity:0;position:relative;text-align:left;transition:.1s;width:100%}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-add-wrapper .mt-be-btn-add:before{color:#666;content:"+";font-size:32px;font-weight:700;height:32px;left:calc(50% - 16px);line-height:32px;padding:0 2px;position:absolute;text-align:center;text-shadow:4px 4px 0 #fff,-4px -4px 0 #fff,-4px 4px 0 #fff,4px -4px 0 #fff,0 4px 0 #fff,0 -4px 0 #fff,-4px 0 0 #fff,4px 0 0 #fff;top:-4px;transition:.1s;width:32px;z-index:400}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-add-wrapper .mt-be-btn-add:after{background-size:0,5px 1px,0,0;z-index:-1}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-add-wrapper .mt-be-btn-add:hover{opacity:1}.mt-block-editor .mt-be-block{margin-bottom:16px;padding:8px;position:relative;transition:.1s;width:100%}.mt-block-editor .mt-be-block:focus,.mt-block-editor .mt-be-block:focus-within,.mt-block-editor .mt-be-block:hover{box-shadow:0 0 3px 0 rgba(0,0,0,.4)}.mt-block-editor .mt-be-block .mt-be-input-container{border:1px solid #767676;border-radius:3px;padding:6px}.mt-block-editor .mt-be-block .mt-be-input{font-size:16px;font-weight:400;margin-top:4px;padding:6px}.mt-block-editor .mt-be-block .mt-be-input:focus{outline:3px auto #ddd;outline-offset:-2px}.mt-block-editor .mt-be-block .mt-be-input--static{font-size:16px;font-weight:400;margin-top:4px;padding:6px}.mt-block-editor .mt-be-block .mt-be-input--static:focus{outline:3px auto #ddd;outline-offset:-2px}.mt-block-editor .mt-be-block .mt-be-input--static{display:inline-block;margin-top:10px}.mt-block-editor .mt-be-block .mt-be-input--full-width{width:calc(100% - 2px)!important}.mt-block-editor .mt-be-block .mt-be-label-name{color:#666;display:inline-block;font-family:inherit;font-size:12px;font-weight:400;line-height:normal;margin-bottom:20px;width:100%}.mt-block-editor .mt-be-block .mt-be-label-name>input,.mt-block-editor .mt-be-block .mt-be-label-name>select,.mt-block-editor .mt-be-block .mt-be-label-name>textarea{font-size:16px;font-weight:400;margin-top:4px;padding:6px}.mt-block-editor .mt-be-block .mt-be-label-name>input:focus,.mt-block-editor .mt-be-block .mt-be-label-name>select:focus,.mt-block-editor .mt-be-block .mt-be-label-name>textarea:focus{outline:3px auto #ddd;outline-offset:-2px}.mt-block-editor .mt-be-block .mt-be-label-name>input,.mt-block-editor .mt-be-block .mt-be-label-name>select,.mt-block-editor .mt-be-block .mt-be-label-name>textarea{width:calc(100% - 2px)!important}.mt-block-editor .mt-be-block .mt-be-label-name+.mt-be-input,.mt-block-editor .mt-be-block .mt-be-label-name+.mt-be-input-container{display:block;margin-top:-16px}.mt-block-editor .mt-be-block .mt-be-content-label{background:#fff;color:#666;font-size:12px;left:4px;opacity:0;padding:0 5px;pointer-events:none;position:absolute;top:-9px;transition:.1s}.mt-block-editor .mt-be-block:hover>.mt-be-content-label{opacity:1}.mt-block-editor .mt-be-block hr{border-top:1px solid #666}.mt-block-editor .mt-be-block-wrapper .mt-be-block .mt-be-btn-move-wrapper{left:-40px}.mt-block-editor .mt-be-block-list-wrapper{display:flex;justify-content:center;left:calc(50% - 144px);position:absolute;top:20px;transition:.1s ease-in-out;z-index:1100}.mt-block-editor .mt-be-block-list-wrapper.mt-be-block-list-wrapper-none{display:none}.mt-block-editor .mt-be-block-list-wrapper.mt-be-block-list-wrapper-enter,.mt-block-editor .mt-be-block-list-wrapper.mt-be-block-list-wrapper-exit{opacity:0}.mt-block-editor .mt-be-block-list-wrapper.mt-be-block-list-wrapper-enter-active,.mt-block-editor .mt-be-block-list-wrapper.mt-be-block-list-wrapper-enter-done{opacity:1;top:32px}.mt-block-editor .mt-be-block-list-wrapper .mt-be-block-list{grid-gap:1px;background:#fff;display:grid;grid-template-columns:repeat(3,1fr);margin:0;outline:1px solid #ddd;padding:0;width:290px}.mt-block-editor .mt-be-block-list-wrapper .mt-be-block-list li{height:84px;list-style:none;margin:0;outline:1px solid #eee}.mt-block-editor .mt-be-block-list-wrapper .mt-be-block-list li button{align-items:center;background-color:transparent;border:none;color:#333;display:flex;font-size:8px;height:100%;justify-content:center;padding:8px;text-align:center;text-decoration:none;transition:.1s;width:100%}.mt-block-editor .mt-be-block-list-wrapper .mt-be-block-list li button:hover{background-color:#eee}.mt-block-editor .mt-be-block-list-wrapper .mt-be-block-list li button img{height:20px;margin-bottom:8px;width:20px}.mt-block-editor .mt-be-block-list-wrapper .mt-be-block-list li button span{display:block}.mt-block-editor .mt-be-shortcut-block-list{display:flex;margin:0;padding:0;position:relative}.mt-block-editor .mt-be-shortcut-block-list:after{background-color:#ddd;content:"";height:28px;position:absolute;right:-1px;top:7px;width:1px}.mt-block-editor .mt-be-shortcut-block-list li{list-style:none;margin:0}.mt-block-editor .mt-be-shortcut-block-list li button{background-color:transparent;border:none;display:block;height:40px;line-height:40px;padding:2px 10px;position:relative;transition:.1s}.mt-block-editor .mt-be-shortcut-block-list li button:hover{background-color:#eee}.mt-block-editor .mt-be-shortcut-block-list li button img{height:16px;vertical-align:inherit;width:16px}.mt-block-editor .mt-be-focus .mt-be-block{outline:2px solid #337ab7}.mt-block-editor .mt-be-focus .mt-be-block .mt-be-block{outline:none}.mt-block-editor .mt-be-droppable:before{background-color:rgba(21,50,76,.9);color:#fff;content:" ";display:block;height:100%;left:0;pointer-events:none;position:absolute;text-align:center;top:0;width:100%;z-index:200}.mt-block-editor .mt-be-label-block{font-weight:700}.mt-block-editor .mt-be-help-block{color:#737373;font-weight:400}.mt-block-editor .mt-be-columns .mt-be-column{flex-basis:50%;padding:0 15px;position:relative}.mt-block-editor .mt-be-columns .mt-be-column:first-child{padding-left:0}.mt-block-editor .mt-be-columns .mt-be-column:last-child{padding-right:0}.mt-block-editor .mt-be-block-toolbar{background:#fff;border:1px solid #ddd;left:-8px;position:absolute;top:-39px;width:-moz-max-content;width:max-content;z-index:1000}.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--no-border{border:none}.mt-block-editor .mt-be-block-toolbar .mt-be-block-toolbar-button{background:transparent;border:none;cursor:pointer;height:32px;padding:0;transition:.1s;width:32px}.mt-block-editor .mt-be-block-toolbar .mt-be-block-toolbar-button img{height:16px;left:-1px;position:relative;top:-2px;width:16px}.mt-block-editor .mt-be-block-toolbar .mt-be-block-toolbar-button:hover{background-color:#eee}.mt-block-editor .mt-be-block-toolbar .mt-be-block-toolbar-button:focus{outline:none}.mt-block-editor .mt-be-block-toolbar .mce-tinymce{box-shadow:none}.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--x2{left:-1px;top:-70px}.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--default{display:none}.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--tinymce .tox-pop{width:-moz-max-content;width:max-content}.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--mt-rich-text-editor{border:1px solid #ddd;border-radius:4px;left:-1px;top:-43px}.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--mt-rich-text-editor.mt-be-block-toolbar--x2{top:-85px}.mt-block-editor .mt-be-block-toolbar-default-items{display:none}.mt-block-editor .mt-be-block-config-panel{background:hsla(0,0%,100%,.9);border:1px solid #ddd;color:#666;font-size:12px;height:auto;left:0;padding:12px;position:absolute;top:-4px;transition:.1s ease-in-out;width:auto;z-index:1000}.mt-block-editor .mt-be-block-config-panel.mt-be-block-config-panel-enter,.mt-block-editor .mt-be-block-config-panel.mt-be-block-config-panel-exit{opacity:0}.mt-block-editor .mt-be-block-config-panel.mt-be-block-config-panel-enter-active,.mt-block-editor .mt-be-block-config-panel.mt-be-block-config-panel-enter-done{opacity:1}.mt-block-editor .mt-be-block-config-panel ul{margin:0;padding:0}.mt-block-editor .mt-be-block-config-panel ul li{margin-right:12px}.mt-block-editor .mt-be-block-config-panel ul li label{cursor:pointer}.mt-block-editor .mt-be-block-config-panel ul li input{cursor:pointer;margin-right:4px}.mt-block-editor .mt-be-block-command-panel{background:#fff;border:1px solid #ddd;color:#666;height:auto;position:absolute;right:20px;top:-4px;transition:opacity .1s ease-in-out;width:auto;z-index:2000}.mt-block-editor .mt-be-block-command-panel.mt-be-block-command-panel-enter,.mt-block-editor .mt-be-block-command-panel.mt-be-block-command-panel-exit{opacity:0}.mt-block-editor .mt-be-block-command-panel.mt-be-block-command-panel-enter-active,.mt-block-editor .mt-be-block-command-panel.mt-be-block-command-panel-exit-done{opacity:1}.mt-block-editor .mt-be-block-command-panel[data-mt-be-block-command-panel-placement=bottom]{right:unset;top:55px}.mt-block-editor .mt-be-block-command-panel .mt-be-command-list{list-style:none;margin:0;padding:0}.mt-block-editor .mt-be-block-command-panel .mt-be-btn-add{text-align:left}.mt-block-editor .visible{visibility:visible}.mt-block-editor .invisible{visibility:hidden}.mt-block-editor .mt-be-input--hidden{border:none;height:1px;margin:0;padding:0;position:absolute;width:1px}.mt-block-editor .mce-edit-focus{outline:0!important}.mt-block-editor .mce-content-body{font-family:inherit;line-height:inherit}.mt-block-editor .mce-content-body table:not(.mce-item-table) tbody,.mt-block-editor .mce-content-body table:not(.mce-item-table) td,.mt-block-editor .mce-content-body table:not(.mce-item-table) tfoot,.mt-block-editor .mce-content-body table:not(.mce-item-table) th,.mt-block-editor .mce-content-body table:not(.mce-item-table) thead,.mt-block-editor .mce-content-body table:not(.mce-item-table) tr{border-width:1px}.mt-block-editor .mce-item-table{width:100%}.mt-block-editor .mt-be-overlay{align-items:center;background:hsla(0,0%,100%,.5);display:flex;height:100%;justify-content:center;left:0;overflow:scroll;position:fixed;top:0;width:100%}.mt-block-editor .mt-be-overlay .mt-be-dialog{transition:.3s ease-in-out}.mt-block-editor .mt-be-overlay.mt-be-overlay-enter .mt-be-dialog{margin-top:-128px;opacity:0}.mt-block-editor .mt-be-overlay.mt-be-overlay-enter-active .mt-be-dialog,.mt-block-editor .mt-be-overlay.mt-be-overlay-exit .mt-be-dialog{margin-top:0;opacity:1}.mt-block-editor .mt-be-overlay.mt-be-overlay-exit-active .mt-be-dialog{margin-top:-128px;opacity:0}.mt-block-editor .mt-be-overlay .mt-be-dialog-content{background:#fff;border-radius:6px;box-shadow:0 5px 15px rgba(0,0,0,.5);max-width:600px;width:600px}.mt-block-editor .mt-be-overlay .mt-be-dialog-header{border-bottom:1px solid #ddd;display:flex;justify-content:space-between;padding:10px}.mt-block-editor .mt-be-overlay .mt-be-dialog-btn-close{background:#fff;border:0;color:#000;font-size:21px;font-weight:700;line-height:1;opacity:.2;text-shadow:0 1px 0 #fff}.mt-block-editor .mt-be-overlay .mt-be-dialog-btn-close:hover{opacity:.5}.mt-block-editor .mt-be-overlay .mt-be-dialog-title{font-size:19.2px;font-weight:400;margin:0}.mt-block-editor .mt-be-overlay .mt-be-dialog-body{padding:10px}.mt-block-editor .mt-be-overlay .mt-be-dialog-footer{border-top:1px solid #ddd;padding:10px;text-align:right}.mt-block-editor .mt-be-overlay .mt-be-dialog-footer button+button{margin-left:5px}.mt-block-editor .mt-be-overlay .mt-be-label-name{align-items:center;display:flex;margin-bottom:.9rem}.mt-block-editor .mt-be-overlay .mt-be-label-name .mt-be-label-block{max-width:25%;padding:0 15px;text-align:right;white-space:nowrap;width:25%}.mt-block-editor .mt-be-overlay .mt-be-label-name .mt-be-input{font-size:16px;font-weight:400;margin-top:4px;padding:6px}.mt-block-editor .mt-be-overlay .mt-be-label-name .mt-be-input:focus{outline:3px auto #ddd;outline-offset:-2px}.mt-block-editor .mt-be-overlay .mt-be-label-name .mt-be-input{border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgb(0 0 0/8%);height:34px;margin:0 15px;width:75%}@media (max-width:991.5px){.mt-block-editor .mt-be-app{margin:0 16px;padding:0}.mt-block-editor .mt-be-btn-command-panel{height:34px;position:relative;width:32px}.mt-block-editor .mt-be-btn-command-panel:before{display:inline-flex;font-size:18px;justify-content:center;position:relative;top:-5px}.mt-block-editor .mt-be-btn-move{background-position:50%;height:28px}.mt-block-editor .mt-be-btn-down,.mt-block-editor .mt-be-btn-up{background-position:50%;background-size:22px;border-right:1px solid #ddd;height:35px;padding:12px;width:34px}.mt-block-editor .mt-be-block-toolbar--mt-rich-text-editor .mt-be-btn-down,.mt-block-editor .mt-be-block-toolbar--mt-rich-text-editor .mt-be-btn-up{height:40px;width:34px}.mt-block-editor .mt-be-btn-add{font-size:12px;height:40px;line-height:40px;padding:0}.mt-block-editor .mt-be-btn-add:before{font-size:12px;height:28px;line-height:28px}.mt-block-editor .mt-be-btn-add-bottom .mt-be-btn-wrap{flex-direction:column-reverse}.mt-block-editor .mt-be-shortcut-block-list{justify-content:center}.mt-block-editor .mt-be-shortcut-block-list li button{padding:6px 12px}.mt-block-editor .mt-be-shortcut-block-list li button img{height:24px;width:24px}.mt-block-editor .mt-be-shortcut-block-list:after{height:1px;left:8px;top:0;width:calc(100% - 18px);z-index:200}.mt-block-editor .mt-be-block .mt-be-content-label{font-size:12px}.mt-block-editor .mt-be-block-toolbar{border:0;left:0;width:100%!important}.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--default{display:block;height:32px}.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--tinymce,.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--tinymce .mce-container-body,.mt-block-editor .mt-be-block-toolbar.mt-be-block-toolbar--tinymce .mce-tinymce{width:100%!important}.mt-block-editor .mt-be-block-toolbar .mce-container-body.mce-flow-layout{display:flex;flex-direction:row;flex-wrap:wrap}.mt-block-editor .mt-be-block-toolbar .mt-be-block-toolbar-button{border:1px solid #ddd}.mt-block-editor .mt-be-columns .mt-be-block-toolbar.mt-be-block-toolbar--tinymce,.mt-block-editor .mt-be-columns .mt-be-block-toolbar.mt-be-block-toolbar--tinymce .mce-container-body,.mt-block-editor .mt-be-columns .mt-be-block-toolbar.mt-be-block-toolbar--tinymce .mce-tinymce{max-width:calc(100vw - 15px)!important}.mt-block-editor .mt-be-block-toolbar-default-items{background-color:#fff;border:1px solid #ddd;bottom:0;display:inline;height:36px;position:absolute;right:0;z-index:3}.mt-block-editor .mt-be-block-toolbar--mt-rich-text-editor .mt-be-block-toolbar-default-items{border-width:0 1px;height:39px}.mt-block-editor .mt-be-block-toolbar--tinymce .mce-btn-group:not(:first-child){border-left:0}.mt-block-editor .mt-be-block-toolbar--tinymce .mt-be-block-toolbar-default-items{background-color:transparent;border:0;bottom:0;right:0}.mt-block-editor .mt-be-block-toolbar--tinymce .mt-be-block-toolbar-default-items .mt-be-btn-down,.mt-block-editor .mt-be-block-toolbar--tinymce .mt-be-block-toolbar-default-items .mt-be-btn-up{border-right:0;width:26px}.mt-block-editor .mt-be-block-wrapper{margin:10px 0}.mt-block-editor .mt-be-block-wrapper .mt-be-btn-add-wrapper,.mt-block-editor .mt-be-block-wrapper .mt-be-btn-move-wrapper,.mt-block-editor .mt-be-block-wrapper .mt-be-btn-remove-wrapper{display:none}.mt-block-editor .mt-be-block-list-wrapper .mt-be-block-list li button{font-size:12px;line-height:1}.mt-block-editor .mt-be-block-list-wrapper .mt-be-block-list li button img{height:24px;margin-bottom:8px;width:24px}.mt-block-editor .mt-be-block-list-wrapper:not(.mt-be-block-list-wrapper--bottom){position:fixed}.mt-block-editor .mt-be-block-command-panel{padding:4px 12px;right:0;top:-4px}.mt-block-editor .mt-be-overlay .mt-be-dialog-content{width:calc(100vw - 32px)}.mt-block-editor .mt-be-overlay .mt-be-label-name .mt-be-label-block{width:200px}} /*# sourceMappingURL=mt-block-editor.css.map*/ \ No newline at end of file diff --git a/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.7/mt-block-editor.css.map b/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.7/mt-block-editor.css.map new file mode 100644 index 0000000..b9fa3a7 --- /dev/null +++ b/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.7/mt-block-editor.css.map @@ -0,0 +1 @@ +{"version":3,"file":"mt-block-editor.css","mappings":"AA8BA,8BACE,eACF,CAGE,4BAEE,gBAAkB,CADlB,cAEF,CAEA,oOAGE,mBAAoB,CAFpB,iBAAkB,CAClB,mBAAoB,CAGpB,QAAS,CADT,oBAEF,CAEA,oCAzBA,qBAAsB,CAFtB,qBAAyB,CAFzB,iBAAkB,CAGlB,UAAc,CAEd,cAAe,CAJf,cAAe,CAFf,gBAgCA,CAzBA,0CACE,wBACF,CAyBA,oCA7BA,qBAAsB,CAFtB,qBAAyB,CAFzB,iBAAkB,CAGlB,UAAc,CAEd,cAAe,CAJf,cAAe,CAFf,gBAyCA,CAlCA,0CACE,wBACF,CC3BF,oCDsDI,wBAAyB,CACzB,U,CACA,0CACE,wBACF,CAGF,gCAKE,4BAA6B,CAD7B,QAAS,CAGT,UAAW,CALX,aAAc,CAMd,cAAe,CALf,aAAc,CAGd,cAAgB,CALhB,UAgBF,CARE,sCAEE,qBAAsB,CADtB,YAEF,CACA,sCAEE,qBAAsB,CADtB,cAEF,CAGF,oCAEE,oBAAqB,CAGrB,4BAA6B,CAD7B,QAAS,CAET,UAAW,CALX,YAAa,CAMb,cAAuC,CAJvC,6BAsCF,CAhCE,yCAEE,yBAA0B,CAD1B,kBAEF,CAEA,2BAdF,oCAeI,eAAgB,CAChB,iBAyBJ,CAxBI,oFAIE,qBAAsB,CADtB,cAAe,CADf,YAGF,CAEA,wCAGE,gBAAiB,CAFjB,uBAAwB,CACxB,UAEF,CACF,CAEA,2BA/BF,oCAiCI,WAAY,CACZ,gBAAiB,CACjB,SAAS,CAHT,UASJ,CAJI,wCACE,YACF,CACF,CAGF,uCAEE,iBAAkB,CADlB,UA2EF,CAxEE,uDAEE,YAAa,CACb,iBAAkB,CAFlB,UAsEF,CAjEI,qGACE,YACF,CAEA,2BALF,sFAOI,oBAAoB,CADpB,UAiBJ,CAbM,uHACE,OACF,CAEJ,CAEA,2BAEI,uHACE,QACF,CAEJ,CAGF,6DAGE,8RA2BG,CAEH,yCAA+D,CAC/D,qDAAyD,CAFzD,iDAAqD,CAKrD,QAAS,CAnCT,UAAW,CAoCX,MAAO,CAEP,mBAAoB,CALpB,iBAAkB,CAIlB,OAAQ,CAHR,KAAM,CAjCN,WAsCF,CAIJ,mCACE,eAAgB,CAMhB,+qBAA2C,CAC3C,oBAAqB,CANrB,WAAY,CAOZ,UAAW,CAHX,UAAW,CAHX,cAAe,CAOf,cAAe,CALf,WAAY,CADZ,UAOF,CAEA,iCACE,eAAgB,CAKhB,scAAyC,CACzC,oBAAqB,CALrB,WAAY,CACZ,WAAY,CAEZ,WAAY,CADZ,UAIF,CAEA,+BACE,eAAgB,CAKhB,wNAAuC,CACvC,oBAAqB,CALrB,WAAY,CACZ,cAAe,CAEf,WAAY,CADZ,UAIF,CAEA,0CACE,eAAgB,CAChB,WAAY,CACZ,cAAe,CAEf,WAAY,CADZ,UAMF,CAJE,iDACE,UAAW,CACX,WACF,CAGF,iCACE,eAAgB,CAKhB,0NAAyC,CACzC,oBAAqB,CALrB,WAAY,CACZ,cAAe,CAEf,WAAY,CADZ,UAIF,CAEA,sCAGE,sBAAuB,CADvB,YAAa,CADb,iBA+FF,CA3FE,qDACE,cACF,CAEA,gEAGE,YAAa,CACb,qBAAsB,CAHtB,iBAAkB,CAClB,WAAY,CAIZ,oBAAqB,CADrB,iBAQF,CANE,uEACE,cAIF,CAHE,6EACE,UACF,CAGJ,mFACE,kBAAmB,CACnB,UACF,CAEA,8DAKE,YAAa,CACb,qBAAsB,CAHtB,WAAY,CADZ,UAAW,CADX,iBAAkB,CAGlB,oBAAqB,CAGrB,iBAUF,CARE,wOAGE,cAIF,CAHE,0PACE,UACF,CAIJ,iFACE,kBACF,CAEA,6DAME,cAAe,CAFf,aAAc,CAFd,WAAY,CAGZ,iBAAkB,CAFlB,SAAU,CAFV,UA2CF,CApCE,4EAKE,4BAA6B,CAC7B,SAAU,CAHV,iBAAkB,CAClB,eAAgB,CAFhB,cAAgB,CADhB,UAkCF,CA3BE,mFAYE,UAAW,CAVX,WAAY,CAQZ,cAAe,CADf,eAAiB,CAHjB,WAAY,CAHZ,qBAAsB,CAItB,gBAAiB,CAMjB,aAAc,CAZd,iBAAkB,CAOlB,iBAAkB,CAOlB,iIAEc,CAbd,QAAS,CAOT,cAAgB,CANhB,UAAW,CASX,WAIF,CAEA,kFACE,6BAAuC,CACvC,UACF,CACA,kFACE,SACF,CAKN,8BAIE,kBAA8B,CAD9B,WAAY,CADZ,iBAAkB,CAGlB,cAAgB,CAJhB,UAwEF,CAnEE,mHAGE,mCACF,CAEA,qDACE,wBAAoC,CACpC,iBAAkB,CAClB,WACF,CAEA,2CAjXF,cAA0B,CAC1B,eAAmB,CAEnB,cAAe,CADf,WAiXE,CA/WF,iDAEE,qBAAsB,CADtB,mBAEF,CA8WE,mDArXF,cAA0B,CAC1B,eAAmB,CAEnB,cAAe,CADf,WAuXE,CArXF,yDAEE,qBAAsB,CADtB,mBAEF,CCVF,mDD0XM,oBAAqB,CACrB,e,CAGF,uDAhXF,gCAkXE,CAEA,gDAQE,UAAW,CAPX,oBAAqB,CAKrB,mBAAoB,CAFpB,cAAuC,CACvC,eAAmB,CAEnB,kBAAmB,CAJnB,kBAAmB,CADnB,UAmBF,CAZE,sKAxYJ,cAA0B,CAC1B,eAAmB,CAEnB,cAAe,CADf,WA2YI,CAzYJ,wLAEE,qBAAsB,CADtB,mBAEF,CCVF,sKDcE,gC,CAoYI,oIAEE,aAAc,CACd,gBACF,CAGF,mDASE,eAAiB,CAFjB,UAAW,CADX,cAAuC,CAFvC,QAAS,CAMT,SAAU,CALV,aAAc,CAJd,mBAAoB,CACpB,iBAAkB,CAClB,QAAS,CAKT,cAGF,CACA,yDACE,SACF,CACA,iCACE,yBACF,CAIA,2EACE,UACF,CAGF,2CACE,YAAa,CACb,sBAAuB,CAIvB,sBAAuB,CAHvB,iBAAkB,CAClB,QAAS,CAGT,0BAA4B,CAF5B,YAkEF,CA9DE,yEACE,YACF,CAEA,mJAEE,SACF,CAEA,gKAEE,SAAU,CACV,QACF,CAEA,6DAGE,YAAa,CAGb,eAAiB,CALjB,YAAa,CACb,mCAAqC,CAErC,QAAS,CAGT,sBAAuB,CAFvB,SAAY,CAGZ,WAsCF,CApCE,gEAEE,WAAyB,CACzB,eAAgB,CAFhB,QAAS,CAGT,sBA+BF,CA7BE,uEAGE,kBAAmB,CAUnB,4BAA6B,CAD7B,WAAY,CAFZ,UAAc,CATd,YAAa,CAQb,aAAsC,CAHtC,WAAY,CAJZ,sBAAuB,CAKvB,WAAY,CAHZ,iBAAkB,CAIlB,oBAAqB,CAGrB,cAAgB,CANhB,UAuBF,CAbE,6EACE,qBACF,CAEA,2EAEE,WAAY,CACZ,iBAAkB,CAFlB,UAGF,CAEA,4EACE,aACF,CAMR,4CACE,YAAa,CACb,QAAS,CACT,SAAU,CACV,iBAoCF,CAnCE,kDAOE,qBAAsB,CANtB,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAIlB,UAAW,CADX,OAAQ,CAFR,SAKF,CAEA,+CAEE,eAAgB,CADhB,QAuBF,CApBE,sDAQE,4BAA6B,CAD7B,WAAY,CAJZ,aAAc,CAFd,WAAY,CACZ,gBAAiB,CAEjB,gBAAiB,CACjB,iBAAkB,CAClB,cAaF,CATE,4DACE,qBACF,CAEA,0DAEE,WAAY,CACZ,sBAAuB,CAFvB,UAGF,CAKN,2CACE,yBAKF,CAHE,wDACE,YACF,CAGF,yCAWE,kCAAuC,CADvC,UAAY,CAFZ,WAAY,CAPZ,aAAc,CAMd,WAAY,CAFZ,MAAO,CAOP,mBAAoB,CAVpB,iBAAkB,CAOlB,iBAAkB,CALlB,KAAM,CAEN,UAAW,CAHX,WAUF,CAIA,oCACE,eACF,CAEA,mCAEE,aAAc,CADd,eAEF,CAIE,8CAEE,cAAe,CACf,cAAe,CAFf,iBAWF,CAPE,0DACE,cACF,CAEA,yDACE,eACF,CAIJ,sCAIE,eAAiB,CAGjB,qBAAsB,CAJtB,SAAU,CAFV,iBAAkB,CAKlB,SAAU,CAJV,sBAAkB,CAAlB,iBAAkB,CAGlB,YA2DF,CAvDE,qEACE,WACF,CAEA,kEAKE,sBAAuB,CADvB,WAAY,CAEZ,cAAe,CALf,WAAY,CAEZ,SAAU,CAIV,cAAgB,CALhB,UAmBF,CAbE,sEAEE,WAAY,CACZ,SAAU,CAEV,iBAAkB,CADlB,QAAS,CAHT,UAKF,CACA,wEACE,qBACF,CACA,wEACE,YACF,CAGF,mDACE,eACF,CAEA,8DAEE,SAAU,CADV,SAEF,CAEA,mEACE,YACF,CAGE,4EACE,sBAAkB,CAAlB,iBACF,CAGF,+EACE,qBAAsB,CACtB,iBAAkB,CAClB,SAAU,CACV,SAIF,CAHE,uGACE,SACF,CAIJ,oDACE,YACF,CAEA,2CAOE,6BAAoC,CAKpC,qBAAsB,CAFtB,UAAW,CATX,cAAuC,CAGvC,WAAY,CACZ,MAAS,CAMT,YAAa,CATb,iBAAkB,CAIlB,QAAS,CAQT,0BAA4B,CAX5B,UAAW,CAKX,YAgCF,CAxBE,mJAEE,SACF,CAEA,gKAEE,SACF,CAEA,8CAEE,QAAS,CADT,SAYF,CAVE,iDACE,iBAQF,CAPE,uDACE,cACF,CACA,uDACE,cAAe,CACf,gBACF,CAKN,4CAME,eAAkC,CAIlC,qBAAsB,CADtB,UAAW,CANX,WAAY,CAFZ,iBAAkB,CAGlB,UAAW,CACX,QAAS,CAOT,kCAAoC,CAVpC,UAAW,CAKX,YA+BF,CAxBE,uJAEE,SACF,CAEA,mKAEE,SACF,CAEA,6FACE,WAAY,CACZ,QACF,CAEA,gEACE,eAAgB,CAEhB,QAAS,CADT,SAEF,CAEA,2DACE,eACF,CAIF,0BACE,kBACF,CACA,4BACE,iBACF,CAEA,sCAIE,WAAY,CADZ,UAAW,CAEX,QAAS,CACT,SAAU,CALV,iBAAkB,CAClB,SAKF,CAGA,iCACE,mBACF,CAEA,mCACE,mBAAoB,CACpB,mBAMF,CAJI,+YACE,gBACF,CAIJ,iCACE,UACF,CAEA,gCAUE,kBAAmB,CAHnB,6BAAoC,CAEpC,YAAa,CAJb,WAAY,CAMZ,sBAAuB,CARvB,MAAO,CAGP,eAAgB,CALhB,cAAe,CACf,KAAM,CAEN,UAyGF,CAhGE,8CACE,0BACF,CAEE,kEAEE,iBAAkB,CADlB,SAEF,CAIA,0IAEE,YAAa,CADb,SAEF,CAGA,wEAEE,iBAAkB,CADlB,SAEF,CAGF,sDACE,eAAiB,CAGjB,iBAAkB,CAClB,oCAAuC,CAFvC,eAAgB,CADhB,WAIF,CAEA,qDAIE,4BAA6B,CAH7B,YAAa,CACb,6BAA8B,CAC9B,YAEF,CAEA,wDAQE,eAAgB,CAJhB,QAAS,CACT,UAAW,CAJX,cAAe,CACf,eAAgB,CAChB,aAAc,CAId,UAAY,CADZ,wBAOF,CAHE,8DACE,UACF,CAGF,oDACE,gBAAsC,CACtC,eAAmB,CACnB,QACF,CAEA,mDACE,YACF,CAEA,qDAEE,yBAA0B,CAD1B,YAAa,CAEb,gBAKF,CAHE,mEACE,eACF,CAGF,kDAEE,kBAAmB,CADnB,YAAa,CAEb,mBAmBF,CAjBE,qEAEE,aAAc,CAEd,cAAe,CADf,gBAAiB,CAEjB,kBAAmB,CAJnB,SAKF,CAEA,+DAr3BJ,cAA0B,CAC1B,eAAmB,CAEnB,cAAe,CADf,WA23BI,CAz3BJ,qEAEE,qBAAsB,CADtB,mBAEF,CCVF,+DD43BQ,qBAAsB,CACtB,iBAAkB,CAClB,wCAA2C,CAC3C,WAAY,CAJZ,aAAc,CADd,S,CAWR,2BAEI,4BAEE,aAAc,CADd,SAEF,CAEA,0CAEE,WAAY,CACZ,iBAAkB,CAFlB,UAUF,CAPE,iDAGE,mBAAoB,CAFpB,cAAe,CAGf,sBAAuB,CAFvB,iBAAkB,CAGlB,QACF,CAGF,iCAEE,uBAAkC,CADlC,WAEF,CAEA,gEAOE,uBAAkC,CADlC,oBAAqB,CAFrB,2BAA+B,CAD/B,WAAY,CAEZ,YAAkB,CAHlB,UAMF,CAEE,oJAGE,WAAY,CADZ,UAEF,CAGF,gCAIE,cAAe,CAHf,WAAY,CACZ,gBAAiB,CACjB,SAOF,CALE,uCAGE,cAAe,CAFf,WAAY,CACZ,gBAEF,CAEF,uDACE,6BACF,CACA,4CACE,sBAiBF,CAfI,sDACE,gBAKF,CAJE,0DAEE,WAAY,CADZ,UAEF,CAGJ,kDAEE,UAAW,CAEX,QAAS,CADT,KAAQ,CAFR,uBAAwB,CAIxB,WACF,CAIA,mDACE,cACF,CAGF,sCAGE,QAAS,CADT,MAAO,CADP,oBA0BF,CAtBE,mEACE,aAAc,CACd,WACF,CAIE,0OAEE,oBACF,CAGF,0EACE,YAAa,CAEb,kBAAmB,CADnB,cAEF,CAEA,kEACE,qBACF,CAMA,uRAEE,sCACF,CAGF,oDAQE,qBAAyB,CADzB,qBAAyB,CAFzB,QAAS,CAJT,cAAe,CAEf,WAAY,CADZ,iBAAkB,CAIlB,OAAQ,CAFR,SAKF,CACA,8FAEE,kBAAqB,CACrB,WACF,CAGE,gFACE,aACF,CACA,kFAIE,4BAA6B,CAD7B,QAAS,CAFT,QAAW,CACX,OAQF,CALE,kMAEE,cAAiB,CACjB,UACF,CAIJ,sCACE,aAOF,CALE,2LAGE,YACF,CAMI,uEACE,cAAe,CACf,aAMF,CALE,2EAEE,WAAY,CACZ,iBAAkB,CAFlB,UAGF,CAKR,kFACE,cACF,CACA,4CACE,gBAAiB,CAEjB,OAAU,CADV,QAEF,CAGE,sDACE,wBACF,CAEE,qEACE,WACF,CAIR","sources":["webpack:///./mt-block-editor.scss","webpack:///"],"sourcesContent":["$root-font-size: 16px;\n\n@define-mixin input {\n font-size: $root-font-size;\n font-weight: normal;\n padding: 6px;\n margin-top: 4px;\n &:focus {\n outline-offset: -2px;\n outline: #ddd auto 3px;\n }\n}\n\n@define-mixin full-width {\n width: calc(100% - 2px) !important;\n}\n\n@define-mixin form-button {\n padding: 6px 12px;\n border-radius: 3px;\n font-size: 14px;\n border: 1px solid #dddddd;\n color: #333333;\n background-color: #fff;\n cursor: pointer;\n &:hover {\n background-color: #f5f5f5;\n }\n}\n\n.mt-block-editor-overlay-open {\n overflow: hidden;\n}\n\n.mt-block-editor {\n .mt-be-app {\n padding: 0 40px 0 40px;\n font-size: initial;\n }\n\n h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre {\n font-size: inherit;\n line-height: inherit;\n font-family: inherit;\n word-break: break-all;\n margin: 0;\n }\n\n .mt-be-btn-default {\n @mixin form-button;\n }\n\n .mt-be-btn-primary {\n @mixin form-button;\n background-color: #337ab7;\n color: #fff;\n &:hover {\n background-color: #286090;\n }\n }\n\n .mt-be-btn-add {\n width: 100%;\n display: block;\n padding: 8px 0;\n border: 0;\n background-color: transparent;\n transition: 0.1s;\n color: #666;\n font-size: 11px;\n &:focus {\n outline: none;\n background-color: #eee;\n }\n &:hover {\n cursor: pointer;\n background-color: #eee;\n }\n }\n\n .mt-be-btn-command {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n border: 0;\n background-color: transparent;\n color: #666;\n font-size: calc($root-font-size * 0.75);\n\n span {\n white-space: nowrap;\n text-transform: capitalize;\n }\n\n @media (min-width: 991.5px) {\n min-width: 130px;\n padding: 12px 13px;\n &:focus,\n &:hover {\n outline: none;\n cursor: pointer;\n background-color: #eee;\n }\n\n img {\n vertical-align: text-top;\n width: 13px;\n margin-right: 4px;\n }\n }\n\n @media (max-width: 991.5px) {\n width: 100%;\n height: 40px;\n line-height: 40px;\n padding: 0;\n\n img {\n display: none;\n }\n }\n }\n\n .mt-be-btn-add-bottom {\n width: 100%;\n position: relative;\n\n .mt-be-btn-wrap {\n width: 100%;\n display: flex;\n position: relative;\n\n &.mt-be-btn-wrap--only-shortcuts {\n .mt-be-btn-add {\n display: none;\n }\n\n @media (min-width: 991.5px) {\n width: auto;\n display: inline-block;\n\n .mt-be-shortcut-block-list {\n &:after {\n width: 0;\n }\n }\n }\n\n @media (max-width: 991.5px) {\n .mt-be-shortcut-block-list {\n &:after {\n height: 0;\n }\n }\n }\n }\n\n &::after {\n content: \"\";\n z-index: 999;\n background-image: linear-gradient(\n to right,\n #999,\n #999 2px,\n transparent 2px,\n transparent 5px\n ),\n linear-gradient(\n to right,\n #999,\n #999 2px,\n transparent 2px,\n transparent 5px\n ),\n linear-gradient(\n to bottom,\n #999,\n #999 2px,\n transparent 2px,\n transparent 5px\n ),\n linear-gradient(\n to bottom,\n #999,\n #999 2px,\n transparent 2px,\n transparent 5px\n );\n background-size: 5px 1px, 5px 1px, 1px 5px, 1.1px 5px;\n background-position: left top, left bottom, left top, right top;\n background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n pointer-events: none;\n }\n }\n }\n\n .mt-be-btn-remove {\n background: none;\n border: none;\n cursor: pointer;\n width: 20px;\n height: 20px;\n content: \"\";\n background: url(./img/remove.svg) no-repeat;\n background-size: 20px;\n color: #666;\n font-size: 11px;\n }\n\n .mt-be-btn-move {\n background: none;\n border: none;\n cursor: move;\n width: 18px;\n height: 18px;\n background: url(./img/move.svg) no-repeat;\n background-size: 18px;\n }\n\n .mt-be-btn-up {\n background: none;\n border: none;\n cursor: pointer;\n width: 18px;\n height: 18px;\n background: url(./img/up.svg) no-repeat;\n background-size: 18px;\n }\n\n .mt-be-btn-command-panel {\n background: none;\n border: none;\n cursor: pointer;\n width: 18px;\n height: 18px;\n &:before {\n color: #000;\n content: \"…\";\n }\n }\n\n .mt-be-btn-down {\n background: none;\n border: none;\n cursor: pointer;\n width: 18px;\n height: 18px;\n background: url(./img/down.svg) no-repeat;\n background-size: 18px;\n }\n\n .mt-be-block-wrapper {\n position: relative;\n display: flex;\n align-items: flex-start;\n\n .mt-be-btn-add {\n transition: 0.1s;\n }\n\n .mt-be-btn-remove-wrapper {\n position: absolute;\n right: -30px;\n display: flex;\n flex-direction: column;\n visibility: hidden;\n top: calc(50% - 18px);\n button {\n transition: 0.1s;\n &:hover {\n opacity: 0.5;\n }\n }\n }\n &.mt-be-focus-leader > .mt-be-btn-remove-wrapper {\n visibility: visible;\n z-index: 50;\n }\n\n .mt-be-btn-move-wrapper {\n position: absolute;\n left: -30px;\n height: 50px;\n top: calc(50% - 35px);\n display: flex;\n flex-direction: column;\n visibility: hidden;\n\n .mt-be-btn-up,\n .mt-be-btn-move,\n .mt-be-btn-down {\n transition: 0.1s;\n &:hover {\n opacity: 0.3;\n }\n }\n }\n\n &.mt-be-focus-leader > .mt-be-btn-move-wrapper {\n visibility: visible;\n }\n\n .mt-be-btn-add-wrapper {\n width: 100%;\n height: 40px;\n top: -20px;\n display: block;\n position: absolute;\n cursor: pointer;\n\n .mt-be-btn-add {\n width: 100%;\n transition: 0.1s;\n position: relative;\n text-align: left;\n background-color: transparent;\n opacity: 0;\n\n &:before {\n position: absolute;\n content: \"+\";\n left: calc(50% - 16px);\n top: -4px;\n width: 32px;\n height: 32px;\n line-height: 32px;\n text-align: center;\n font-weight: bold;\n font-size: 32px;\n transition: 0.1s;\n color: #666;\n padding: 0 2px;\n z-index: 400;\n text-shadow: 4px 4px 0 #fff, -4px -4px 0 #fff, -4px 4px 0 #fff,\n 4px -4px 0 #fff, 0px 4px 0 #fff, 0 -4px 0 #fff, -4px 0 0 #fff,\n 4px 0 0 #fff;\n }\n\n &:after {\n background-size: 0px, 5px 1px, 0px, 0px;\n z-index: -1;\n }\n &:hover {\n opacity: 1;\n }\n }\n }\n }\n\n .mt-be-block {\n width: 100%;\n position: relative;\n padding: 8px;\n margin-bottom: $root-font-size;\n transition: 0.1s;\n &:hover,\n &:focus,\n &:focus-within {\n box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.4);\n }\n\n .mt-be-input-container {\n border: 1px solid rgb(118, 118, 118);\n border-radius: 3px;\n padding: 6px;\n }\n\n .mt-be-input {\n @mixin input;\n }\n\n .mt-be-input--static {\n @mixin input;\n display: inline-block;\n margin-top: 10px;\n }\n\n .mt-be-input--full-width {\n @mixin full-width;\n }\n\n .mt-be-label-name {\n display: inline-block;\n width: 100%;\n margin-bottom: 20px;\n font-size: calc($root-font-size * 0.75);\n font-weight: normal;\n font-family: inherit;\n line-height: normal;\n color: #666;\n > input,\n > textarea,\n > select {\n @mixin input;\n @mixin full-width;\n }\n\n + .mt-be-input-container,\n + .mt-be-input {\n display: block;\n margin-top: -16px;\n }\n }\n\n .mt-be-content-label {\n pointer-events: none;\n position: absolute;\n top: -9px;\n left: 4px;\n padding: 0 5px;\n font-size: calc($root-font-size * 0.75);\n color: #666;\n transition: 0.1s;\n background: white;\n opacity: 0;\n }\n &:hover > .mt-be-content-label {\n opacity: 1;\n }\n hr {\n border-top: 1px solid #666;\n }\n }\n\n .mt-be-block-wrapper .mt-be-block {\n .mt-be-btn-move-wrapper {\n left: -40px;\n }\n }\n\n .mt-be-block-list-wrapper {\n display: flex;\n justify-content: center;\n position: absolute;\n top: 20px;\n z-index: 1100;\n left: calc(50% - 144px);\n transition: 0.1s ease-in-out;\n\n &.mt-be-block-list-wrapper-none {\n display: none;\n }\n\n &.mt-be-block-list-wrapper-enter,\n &.mt-be-block-list-wrapper-exit {\n opacity: 0;\n }\n\n &.mt-be-block-list-wrapper-enter-active,\n &.mt-be-block-list-wrapper-enter-done {\n opacity: 1;\n top: 32px;\n }\n\n .mt-be-block-list {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 1px;\n margin: 0;\n padding: 0px;\n background: white;\n outline: 1px solid #ddd;\n width: 290px;\n\n li {\n margin: 0;\n height: calc(68px + 16px);\n list-style: none;\n outline: 1px solid #eee;\n\n button {\n display: flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n width: 100%;\n height: 100%;\n padding: 8px;\n text-decoration: none;\n font-size: calc($root-font-size * 0.5);\n color: #333333;\n transition: 0.1s;\n border: none;\n background-color: transparent;\n\n &:hover {\n background-color: #eee;\n }\n\n img {\n width: 20px;\n height: 20px;\n margin-bottom: 8px;\n }\n\n span {\n display: block;\n }\n }\n }\n }\n }\n\n .mt-be-shortcut-block-list {\n display: flex;\n margin: 0;\n padding: 0;\n position: relative;\n &:after {\n content: \"\";\n position: absolute;\n width: 1px;\n height: 28px;\n top: 7px;\n right: -1px;\n background-color: #ddd;\n }\n\n li {\n margin: 0;\n list-style: none;\n\n button {\n height: 40px;\n line-height: 40px;\n display: block;\n padding: 2px 10px;\n position: relative;\n transition: 0.1s;\n border: none;\n background-color: transparent;\n\n &:hover {\n background-color: #eee;\n }\n\n img {\n width: 16px;\n height: 16px;\n vertical-align: inherit;\n }\n }\n }\n }\n\n .mt-be-focus .mt-be-block {\n outline: 2px solid #337ab7;\n\n .mt-be-block {\n outline: none;\n }\n }\n\n .mt-be-droppable:before {\n display: block;\n position: absolute;\n z-index: 200;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n content: \" \";\n text-align: center;\n color: white;\n background-color: rgba(21, 50, 76, 0.9);\n pointer-events: none;\n }\n\n /* setup */\n\n .mt-be-label-block {\n font-weight: bold;\n }\n\n .mt-be-help-block {\n font-weight: normal;\n color: #737373;\n }\n\n /* mt-be-columns */\n .mt-be-columns {\n .mt-be-column {\n position: relative;\n flex-basis: 50%;\n padding: 0 15px;\n\n &:first-child {\n padding-left: 0;\n }\n\n &:last-child {\n padding-right: 0;\n }\n }\n }\n\n .mt-be-block-toolbar {\n position: absolute;\n width: max-content;\n left: -8px;\n background: white;\n z-index: 1000;\n top: -39px;\n border: 1px solid #ddd;\n\n &.mt-be-block-toolbar--no-border {\n border: none;\n }\n\n .mt-be-block-toolbar-button {\n height: 32px;\n width: 32px;\n padding: 0;\n border: none;\n background: transparent;\n cursor: pointer;\n transition: 0.1s;\n img {\n width: 16px;\n height: 16px;\n left: -1px;\n top: -2px;\n position: relative;\n }\n &:hover {\n background-color: #eee;\n }\n &:focus {\n outline: none;\n }\n }\n\n .mce-tinymce {\n box-shadow: none;\n }\n\n &.mt-be-block-toolbar--x2 {\n top: -70px;\n left: -1px;\n }\n\n &.mt-be-block-toolbar--default {\n display: none;\n }\n\n &.mt-be-block-toolbar--tinymce {\n .tox-pop {\n width: max-content;\n }\n }\n\n &.mt-be-block-toolbar--mt-rich-text-editor {\n border: 1px solid #ddd;\n border-radius: 4px;\n left: -1px;\n top: -43px;\n &.mt-be-block-toolbar--x2 {\n top: -85px;\n }\n }\n }\n\n .mt-be-block-toolbar-default-items {\n display: none;\n }\n\n .mt-be-block-config-panel {\n font-size: calc($root-font-size * 0.75);\n position: absolute;\n width: auto;\n height: auto;\n left: 0px;\n top: -4px;\n background: rgba(255, 255, 255, 0.9);\n z-index: 1000;\n\n color: #666;\n padding: 12px;\n border: 1px solid #ddd;\n\n transition: 0.1s ease-in-out;\n\n &.mt-be-block-config-panel-enter,\n &.mt-be-block-config-panel-exit {\n opacity: 0;\n }\n\n &.mt-be-block-config-panel-enter-active,\n &.mt-be-block-config-panel-enter-done {\n opacity: 1;\n }\n\n ul {\n padding: 0;\n margin: 0;\n li {\n margin-right: 12px;\n label {\n cursor: pointer;\n }\n input {\n cursor: pointer;\n margin-right: 4px;\n }\n }\n }\n }\n\n .mt-be-block-command-panel {\n position: absolute;\n width: auto;\n height: auto;\n right: 20px;\n top: -4px;\n background: rgba(255, 255, 255, 1);\n z-index: 2000;\n\n color: #666;\n border: 1px solid #ddd;\n\n transition: opacity 0.1s ease-in-out;\n\n &.mt-be-block-command-panel-enter,\n &.mt-be-block-command-panel-exit {\n opacity: 0;\n }\n\n &.mt-be-block-command-panel-enter-active,\n &.mt-be-block-command-panel-exit-done {\n opacity: 1;\n }\n\n &[data-mt-be-block-command-panel-placement=\"bottom\"] {\n right: unset;\n top: 55px;\n }\n\n .mt-be-command-list {\n list-style: none;\n padding: 0;\n margin: 0;\n }\n\n .mt-be-btn-add {\n text-align: left;\n }\n }\n\n /* utility */\n .visible {\n visibility: visible;\n }\n .invisible {\n visibility: hidden;\n }\n\n .mt-be-input--hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n border: none;\n margin: 0;\n padding: 0;\n }\n\n /* tinymce */\n .mce-edit-focus {\n outline: 0px !important;\n }\n\n .mce-content-body {\n font-family: inherit;\n line-height: inherit;\n table:not(.mce-item-table) {\n tbody, td, tfoot, th, thead, tr {\n border-width: 1px;\n }\n }\n }\n\n .mce-item-table {\n width: 100%;\n }\n\n .mt-be-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow: scroll;\n background: rgba(255, 255, 255, 0.5);\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n .mt-be-dialog {\n transition: 0.3s ease-in-out;\n }\n &.mt-be-overlay-enter {\n .mt-be-dialog {\n opacity: 0;\n margin-top: -128px;\n }\n }\n &.mt-be-overlay-enter-active,\n &.mt-be-overlay-exit {\n .mt-be-dialog {\n opacity: 1;\n margin-top: 0;\n }\n }\n &.mt-be-overlay-exit-active {\n .mt-be-dialog {\n opacity: 0;\n margin-top: -128px;\n }\n }\n\n .mt-be-dialog-content {\n background: white;\n width: 600px;\n max-width: 600px;\n border-radius: 6px;\n box-shadow: 0 5px 15px rgb(0 0 0 / 50%);\n }\n\n .mt-be-dialog-header {\n display: flex;\n justify-content: space-between;\n padding: 10px;\n border-bottom: 1px solid #ddd;\n }\n\n .mt-be-dialog-btn-close {\n font-size: 21px;\n font-weight: 700;\n line-height: 1;\n border: 0;\n color: #000;\n text-shadow: 0 1px 0 #fff;\n opacity: 0.2;\n background: #fff;\n\n &:hover {\n opacity: 0.5;\n }\n }\n\n .mt-be-dialog-title {\n font-size: calc($root-font-size * 1.2);\n font-weight: normal;\n margin: 0;\n }\n\n .mt-be-dialog-body {\n padding: 10px;\n }\n\n .mt-be-dialog-footer {\n padding: 10px;\n border-top: 1px solid #ddd;\n text-align: right;\n\n button + button {\n margin-left: 5px;\n }\n }\n\n .mt-be-label-name {\n display: flex;\n align-items: center;\n margin-bottom: .9rem;\n\n .mt-be-label-block {\n width: 25%;\n max-width: 25%;\n text-align: right;\n padding: 0 15px;\n white-space: nowrap;\n }\n\n .mt-be-input {\n @mixin input;\n width: 75%;\n margin: 0 15px;\n border: 1px solid #ccc;\n border-radius: 4px;\n box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);\n height: 34px;\n }\n }\n }\n}\n\n@media (max-width: 991.5px) {\n .mt-block-editor {\n .mt-be-app {\n padding: 0 0;\n margin: 0 16px;\n }\n\n .mt-be-btn-command-panel {\n width: 32px;\n height: 34px;\n position: relative;\n &:before {\n font-size: 18px;\n position: relative;\n display: inline-flex;\n justify-content: center;\n top: -5px;\n }\n }\n\n .mt-be-btn-move {\n height: 28px;\n background-position: center center;\n }\n\n .mt-be-btn-up,\n .mt-be-btn-down {\n width: 34px;\n height: 35px;\n border-right: 1px solid #dddddd;\n padding: 12px 12px;\n background-size: 22px;\n background-position: center center;\n }\n .mt-be-block-toolbar--mt-rich-text-editor {\n .mt-be-btn-up,\n .mt-be-btn-down {\n width: 34px;\n height: 40px;\n }\n }\n\n .mt-be-btn-add {\n height: 40px;\n line-height: 40px;\n padding: 0;\n font-size: 12px;\n &:before {\n height: 28px;\n line-height: 28px;\n font-size: 12px;\n }\n }\n .mt-be-btn-add-bottom .mt-be-btn-wrap {\n flex-direction: column-reverse;\n }\n .mt-be-shortcut-block-list {\n justify-content: center;\n li {\n button {\n padding: 6px 12px;\n img {\n width: 24px;\n height: 24px;\n }\n }\n }\n &:after {\n width: calc(100% - 18px);\n height: 1px;\n top: 0px;\n left: 8px;\n z-index: 200;\n }\n }\n\n .mt-be-block {\n .mt-be-content-label {\n font-size: 12px;\n }\n }\n\n .mt-be-block-toolbar {\n width: 100% !important;\n left: 0;\n border: 0;\n\n &.mt-be-block-toolbar--default {\n display: block;\n height: 32px;\n }\n\n &.mt-be-block-toolbar--tinymce {\n width: 100% !important;\n .mce-tinymce,\n .mce-container-body {\n width: 100% !important;\n }\n }\n\n .mce-container-body.mce-flow-layout {\n display: flex;\n flex-wrap: wrap;\n flex-direction: row;\n }\n\n .mt-be-block-toolbar-button {\n border: 1px solid #dddddd;\n }\n }\n\n .mt-be-columns .mt-be-block-toolbar.mt-be-block-toolbar--tinymce {\n max-width: calc(100vw - 15px) !important;\n\n .mce-tinymce,\n .mce-container-body {\n max-width: calc(100vw - 15px) !important;\n }\n }\n\n .mt-be-block-toolbar-default-items {\n display: inline;\n position: absolute;\n height: 36px;\n z-index: 3;\n bottom: 0;\n right: 0;\n border: 1px solid #dddddd;\n background-color: #ffffff;\n }\n .mt-be-block-toolbar--mt-rich-text-editor\n .mt-be-block-toolbar-default-items {\n border-width: 0 1px 0;\n height: 39px;\n }\n\n .mt-be-block-toolbar--tinymce {\n .mce-btn-group:not(:first-child) {\n border-left: 0px;\n }\n .mt-be-block-toolbar-default-items {\n bottom: 0px;\n right: 0px;\n border: 0;\n background-color: transparent;\n .mt-be-btn-up,\n .mt-be-btn-down {\n border-right: 0px;\n width: 26px;\n }\n }\n }\n\n .mt-be-block-wrapper {\n margin: 10px 0;\n\n .mt-be-btn-move-wrapper,\n .mt-be-btn-remove-wrapper,\n .mt-be-btn-add-wrapper {\n display: none;\n }\n }\n\n .mt-be-block-list-wrapper {\n .mt-be-block-list {\n li {\n button {\n font-size: 12px;\n line-height: 1;\n img {\n width: 24px;\n height: 24px;\n margin-bottom: 8px;\n }\n }\n }\n }\n }\n .mt-be-block-list-wrapper:not(.mt-be-block-list-wrapper--bottom) {\n position: fixed;\n }\n .mt-be-block-command-panel {\n padding: 4px 12px;\n top: -4px;\n right: 0px;\n }\n\n .mt-be-overlay {\n .mt-be-dialog-content {\n width: calc(100vw - 32px);\n }\n .mt-be-label-name {\n .mt-be-label-block {\n width: 200px;\n }\n }\n }\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.7/mt-block-editor.js b/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.7/mt-block-editor.js new file mode 100644 index 0000000..b5c1512 --- /dev/null +++ b/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.7/mt-block-editor.js @@ -0,0 +1,9 @@ +/*! +# Movable Type Block Editor (C) 2020 Six Apart Ltd. All Rights Reserved. +# This code cannot be redistributed without permission from www.sixapart.com. +# +# This distribution contains several open source products. +# Their license information can be found in mt-block-editor.js.LICENSE.txt. + */ +(()=>{var e={8393:e=>{e.exports={locales:["en","ja"]}},6689:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},6637:(e,t,n)=>{var r=n(6827);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},990:(e,t,n)=>{var r=n(7166),o=n(3981),i=n(7614),a=r("unscopables"),u=Array.prototype;null==u[a]&&i.f(u,a,{configurable:!0,value:o(null)}),e.exports=function(e){u[a][e]=!0}},4958:(e,t,n)=>{"use strict";var r=n(520).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},26:e=>{e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},1326:(e,t,n)=>{var r=n(6827);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},6650:(e,t,n)=>{"use strict";var r=n(4440),o=n(847),i=n(9223);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>u;)t[u++]=e;return t}},9352:(e,t,n)=>{"use strict";var r=n(5860).forEach,o=n(8809),i=n(778),a=o("forEach"),u=i("forEach");e.exports=a&&u?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},1871:(e,t,n)=>{"use strict";var r=n(8273),o=n(4440),i=n(9448),a=n(9254),u=n(9223),l=n(1861),c=n(3054);e.exports=function(e){var t,n,s,f,d,p,h=o(e),v="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,y=void 0!==g,b=c(h),w=0;if(y&&(g=r(g,m>2?arguments[2]:void 0,2)),null==b||v==Array&&a(b))for(n=new v(t=u(h.length));t>w;w++)p=y?g(h[w],w):h[w],l(n,w,p);else for(d=(f=b.call(h)).next,n=new v;!(s=d.call(f)).done;w++)p=y?i(f,g,[s.value,w],!0):s.value,l(n,w,p);return n.length=w,n}},5254:(e,t,n)=>{var r=n(3016),o=n(9223),i=n(847),a=function(e){return function(t,n,a){var u,l=r(t),c=o(l.length),s=i(a,c);if(e&&n!=n){for(;c>s;)if((u=l[s++])!=u)return!0}else for(;c>s;s++)if((e||s in l)&&l[s]===n)return e||s||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},5860:(e,t,n)=>{var r=n(8273),o=n(8188),i=n(4440),a=n(9223),u=n(5309),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,s=4==e,f=6==e,d=5==e||f;return function(p,h,v,m){for(var g,y,b=i(p),w=o(b),k=r(h,v,3),x=a(w.length),E=0,S=m||u,O=t?S(p,x):n?S(p,0):void 0;x>E;E++)if((d||E in w)&&(y=k(g=w[E],E,b),e))if(t)O[E]=y;else if(y)switch(e){case 3:return!0;case 5:return g;case 6:return E;case 2:l.call(O,g)}else if(s)return!1;return f?-1:c||s?s:O}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},6894:(e,t,n)=>{var r=n(8462),o=n(7166),i=n(5649),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},8809:(e,t,n)=>{"use strict";var r=n(8462);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},778:(e,t,n)=>{var r=n(6953),o=n(8462),i=n(991),a=Object.defineProperty,u={},l=function(e){throw e};e.exports=function(e,t){if(i(u,e))return u[e];t||(t={});var n=[][e],c=!!i(t,"ACCESSORS")&&t.ACCESSORS,s=i(t,0)?t[0]:l,f=i(t,1)?t[1]:void 0;return u[e]=!!n&&!o((function(){if(c&&!r)return!0;var e={length:-1};c?a(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,s,f)}))}},9857:(e,t,n)=>{var r=n(6689),o=n(4440),i=n(8188),a=n(9223),u=function(e){return function(t,n,u,l){r(n);var c=o(t),s=i(c),f=a(c.length),d=e?f-1:0,p=e?-1:1;if(u<2)for(;;){if(d in s){l=s[d],d+=p;break}if(d+=p,e?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;e?d>=0:f>d;d+=p)d in s&&(l=n(l,s[d],d,c));return l}};e.exports={left:u(!1),right:u(!0)}},5309:(e,t,n)=>{var r=n(6827),o=n(3115),i=n(7166)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},9448:(e,t,n)=>{var r=n(1326);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},5239:(e,t,n)=>{var r=n(7166)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},661:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},9794:(e,t,n)=>{var r=n(3557),o=n(661),i=n(7166)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},431:(e,t,n)=>{"use strict";var r=n(1326),o=n(6689);e.exports=function(){for(var e=r(this),t=o(e.add),n=0,i=arguments.length;n{"use strict";var r=n(1326),o=n(6689);e.exports=function(){for(var e,t=r(this),n=o(t.delete),i=!0,a=0,u=arguments.length;a{"use strict";var r=n(7614).f,o=n(3981),i=n(5783),a=n(8273),u=n(26),l=n(6357),c=n(2527),s=n(6080),f=n(6953),d=n(2634).fastKey,p=n(3962),h=p.set,v=p.getterFor;e.exports={getConstructor:function(e,t,n,c){var s=e((function(e,r){u(e,s,t),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&l(r,e[c],e,n)})),p=v(t),m=function(e,t,n){var r,o,i=p(e),a=g(e,t);return a?a.value=n:(i.last=a={index:o=d(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},g=function(e,t){var n,r=p(e),o=d(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(s.prototype,{clear:function(){for(var e=p(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var t=this,n=p(t),r=g(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),f?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=p(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),i(s.prototype,n?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),f&&r(s.prototype,"size",{get:function(){return p(this).size}}),s},setStrong:function(e,t,n){var r=t+" Iterator",o=v(t),i=v(r);c(e,t,(function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),s(t)}}},6939:(e,t,n)=>{"use strict";var r=n(5689),o=n(2756),i=n(5149),a=n(57),u=n(2634),l=n(6357),c=n(26),s=n(6827),f=n(8462),d=n(5239),p=n(5142),h=n(3042);e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),g=v?"set":"add",y=o[e],b=y&&y.prototype,w=y,k={},x=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!s(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!s(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!s(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof y||!(m||b.forEach&&!f((function(){(new y).entries().next()})))))w=n.getConstructor(t,e,v,g),u.REQUIRED=!0;else if(i(e,!0)){var E=new w,S=E[g](m?{}:-0,1)!=E,O=f((function(){E.has(1)})),T=d((function(e){new y(e)})),C=!m&&f((function(){for(var e=new y,t=5;t--;)e[g](t,t);return!e.has(-0)}));T||((w=t((function(t,n){c(t,w,e);var r=h(new y,t,w);return null!=n&&l(n,r[g],r,v),r}))).prototype=b,b.constructor=w),(O||C)&&(x("delete"),x("has"),v&&x("get")),(C||S)&&x(g),m&&b.clear&&delete b.clear}return k[e]=w,r({global:!0,forced:w!=y},k),p(w,e),m||n.setStrong(w,e,v),w}},9621:(e,t,n)=>{var r=n(991),o=n(1804),i=n(172),a=n(7614);e.exports=function(e,t){for(var n=o(t),u=a.f,l=i.f,c=0;c{var r=n(7166)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},6036:(e,t,n)=>{var r=n(8462);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},7179:(e,t,n)=>{var r=n(5065),o=/"/g;e.exports=function(e,t,n,i){var a=String(r(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+String(i).replace(o,""")+'"'),u+">"+a+""}},3087:(e,t,n)=>{"use strict";var r=n(3774).IteratorPrototype,o=n(3981),i=n(9367),a=n(5142),u=n(7240),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,c,!1,!0),u[c]=l,e}},4100:(e,t,n)=>{var r=n(6953),o=n(7614),i=n(9367);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9367:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},1861:(e,t,n)=>{"use strict";var r=n(7806),o=n(7614),i=n(9367);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},9565:(e,t,n)=>{"use strict";var r=n(1326),o=n(7806);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!==e)}},2527:(e,t,n)=>{"use strict";var r=n(5689),o=n(3087),i=n(6166),a=n(4322),u=n(5142),l=n(4100),c=n(57),s=n(7166),f=n(7690),d=n(7240),p=n(3774),h=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,m=s("iterator"),g="keys",y="values",b="entries",w=function(){return this};e.exports=function(e,t,n,s,p,k,x){o(n,t,s);var E,S,O,T=function(e){if(e===p&&N)return N;if(!v&&e in I)return I[e];switch(e){case g:case y:case b:return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",P=!1,I=e.prototype,j=I[m]||I["@@iterator"]||p&&I[p],N=!v&&j||T(p),R="Array"==t&&I.entries||j;if(R&&(E=i(R.call(new e)),h!==Object.prototype&&E.next&&(f||i(E)===h||(a?a(E,h):"function"!=typeof E[m]&&l(E,m,w)),u(E,C,!0,!0),f&&(d[C]=w))),p==y&&j&&j.name!==y&&(P=!0,N=function(){return j.call(this)}),f&&!x||I[m]===N||l(I,m,N),d[t]=N,p)if(S={values:T(y),keys:k?N:T(g),entries:T(b)},x)for(O in S)(v||P||!(O in I))&&c(I,O,S[O]);else r({target:t,proto:!0,forced:v||P},S);return S}},4300:(e,t,n)=>{var r=n(8844),o=n(991),i=n(766),a=n(7614).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},6953:(e,t,n)=>{var r=n(8462);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3018:(e,t,n)=>{var r=n(2756),o=n(6827),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},8993:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},550:(e,t,n)=>{var r=n(5441);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},5441:(e,t,n)=>{var r=n(5072);e.exports=r("navigator","userAgent")||""},5649:(e,t,n)=>{var r,o,i=n(2756),a=n(5441),u=i.process,l=u&&u.versions,c=l&&l.v8;c?o=(r=c.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},4798:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},5689:(e,t,n)=>{var r=n(2756),o=n(172).f,i=n(4100),a=n(57),u=n(1979),l=n(9621),c=n(5149);e.exports=function(e,t){var n,s,f,d,p,h=e.target,v=e.global,m=e.stat;if(n=v?r:m?r[h]||u(h,{}):(r[h]||{}).prototype)for(s in t){if(d=t[s],f=e.noTargetGet?(p=o(n,s))&&p.value:n[s],!c(v?s:h+(m?".":"#")+s,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(n,s,d,e)}}},8462:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},6031:(e,t,n)=>{"use strict";n(3188);var r=n(57),o=n(8462),i=n(7166),a=n(5866),u=n(4100),l=i("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),s="$0"==="a".replace(/./,"$0"),f=i("replace"),d=!!/./[f]&&""===/./[f]("a","$0"),p=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var h=i(e),v=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),m=v&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!v||!m||"replace"===e&&(!c||!s||d)||"split"===e&&!p){var g=/./[h],y=n(h,""[e],(function(e,t,n,r,o){return t.exec===a?v&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:s,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),b=y[0],w=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}f&&u(RegExp.prototype[h],"sham",!0)}},2284:(e,t,n)=>{"use strict";var r=n(3115),o=n(9223),i=n(8273),a=function(e,t,n,u,l,c,s,f){for(var d,p=l,h=0,v=!!s&&i(s,f,3);h0&&r(d))p=a(e,t,d,o(d.length),p,c-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=d}p++}h++}return p};e.exports=a},9947:(e,t,n)=>{var r=n(8462);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},8273:(e,t,n)=>{var r=n(6689);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},8631:(e,t,n)=>{"use strict";var r=n(6689),o=n(6827),i=[].slice,a={};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),u=function(){var r=n.concat(i.call(arguments));return this instanceof u?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o{var r=n(8844),o=n(2756),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},3054:(e,t,n)=>{var r=n(9794),o=n(7240),i=n(7166)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},898:(e,t,n)=>{var r=n(1326),o=n(3054);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},4159:(e,t,n)=>{var r=n(7690),o=n(898);e.exports=r?o:function(e){return Map.prototype.entries.call(e)}},8641:(e,t,n)=>{var r=n(7690),o=n(898);e.exports=r?o:function(e){return Set.prototype.values.call(e)}},2756:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||Function("return this")()},991:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},3472:e=>{e.exports={}},9974:(e,t,n)=>{var r=n(2756);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},1198:(e,t,n)=>{var r=n(5072);e.exports=r("document","documentElement")},7106:(e,t,n)=>{var r=n(6953),o=n(8462),i=n(3018);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8188:(e,t,n)=>{var r=n(8462),o=n(661),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},3042:(e,t,n)=>{var r=n(6827),o=n(4322);e.exports=function(e,t,n){var i,a;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(a=i.prototype)&&a!==n.prototype&&o(e,a),e}},1633:(e,t,n)=>{var r=n(410),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},2634:(e,t,n)=>{var r=n(3472),o=n(6827),i=n(991),a=n(7614).f,u=n(637),l=n(9947),c=u("meta"),s=0,f=Object.isExtensible||function(){return!0},d=function(e){a(e,c,{value:{objectID:"O"+ ++s,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,c)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[c].objectID},getWeakData:function(e,t){if(!i(e,c)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[c].weakData},onFreeze:function(e){return l&&p.REQUIRED&&f(e)&&!i(e,c)&&d(e),e}};r[c]=!0},3962:(e,t,n)=>{var r,o,i,a=n(1602),u=n(2756),l=n(6827),c=n(4100),s=n(991),f=n(5868),d=n(3472),p=u.WeakMap;if(a){var h=new p,v=h.get,m=h.has,g=h.set;r=function(e,t){return g.call(h,e,t),t},o=function(e){return v.call(h,e)||{}},i=function(e){return m.call(h,e)}}else{var y=f("state");d[y]=!0,r=function(e,t){return c(e,y,t),t},o=function(e){return s(e,y)?e[y]:{}},i=function(e){return s(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},9254:(e,t,n)=>{var r=n(7166),o=n(7240),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},3115:(e,t,n)=>{var r=n(661);e.exports=Array.isArray||function(e){return"Array"==r(e)}},5149:(e,t,n)=>{var r=n(8462),o=/#|\.prototype\./,i=function(e,t){var n=u[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},6827:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},7690:e=>{e.exports=!1},5237:(e,t,n)=>{var r=n(6827),o=n(661),i=n(7166)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},6357:(e,t,n)=>{var r=n(1326),o=n(9254),i=n(9223),a=n(8273),u=n(3054),l=n(9448),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,s,f){var d,p,h,v,m,g,y,b=a(t,n,s?2:1);if(f)d=e;else{if("function"!=typeof(p=u(e)))throw TypeError("Target is not iterable");if(o(p)){for(h=0,v=i(e.length);v>h;h++)if((m=s?b(r(y=e[h])[0],y[1]):b(e[h]))&&m instanceof c)return m;return new c(!1)}d=p.call(e)}for(g=d.next;!(y=g.call(d)).done;)if("object"==typeof(m=l(d,b,y.value,s))&&m&&m instanceof c)return m;return new c(!1)}).stop=function(e){return new c(!0,e)}},3774:(e,t,n)=>{"use strict";var r,o,i,a=n(6166),u=n(4100),l=n(991),c=n(7166),s=n(7690),f=c("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):d=!0),null==r&&(r={}),s||l(r,f)||u(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},7240:e=>{e.exports={}},4050:(e,t,n)=>{var r,o,i,a,u,l,c,s,f=n(2756),d=n(172).f,p=n(661),h=n(3102).set,v=n(550),m=f.MutationObserver||f.WebKitMutationObserver,g=f.process,y=f.Promise,b="process"==p(g),w=d(f,"queueMicrotask"),k=w&&w.value;k||(r=function(){var e,t;for(b&&(e=g.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},b?a=function(){g.nextTick(r)}:m&&!v?(u=!0,l=document.createTextNode(""),new m(r).observe(l,{characterData:!0}),a=function(){l.data=u=!u}):y&&y.resolve?(c=y.resolve(void 0),s=c.then,a=function(){s.call(c,r)}):a=function(){h.call(f,r)}),e.exports=k||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},653:(e,t,n)=>{var r=n(2756);e.exports=r.Promise},3165:(e,t,n)=>{var r=n(8462);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},5336:(e,t,n)=>{var r=n(8462),o=n(7166),i=n(7690),a=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},1602:(e,t,n)=>{var r=n(2756),o=n(1633),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},8920:(e,t,n)=>{"use strict";var r=n(6689),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},1960:(e,t,n)=>{var r=n(5237);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},5503:(e,t,n)=>{var r=n(2756),o=n(207).trim,i=n(7669),a=r.parseFloat,u=1/a(i+"-0")!=-1/0;e.exports=u?function(e){var t=o(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},4800:(e,t,n)=>{var r=n(2756),o=n(207).trim,i=n(7669),a=r.parseInt,u=/^[+-]?0[Xx]/,l=8!==a(i+"08")||22!==a(i+"0x16");e.exports=l?function(e,t){var n=o(String(e));return a(n,t>>>0||(u.test(n)?16:10))}:a},9484:(e,t,n)=>{"use strict";var r=n(6953),o=n(8462),i=n(4565),a=n(864),u=n(6492),l=n(4440),c=n(8188),s=Object.assign,f=Object.defineProperty;e.exports=!s||o((function(){if(r&&1!==s({b:1},s(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=s({},e)[n]||i(s({},t)).join("")!=o}))?function(e,t){for(var n=l(e),o=arguments.length,s=1,f=a.f,d=u.f;o>s;)for(var p,h=c(arguments[s++]),v=f?i(h).concat(f(h)):i(h),m=v.length,g=0;m>g;)p=v[g++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:s},3981:(e,t,n)=>{var r,o=n(1326),i=n(6434),a=n(4798),u=n(3472),l=n(1198),c=n(3018),s=n(5868),f="prototype",d="script",p=s("IE_PROTO"),h=function(){},v=function(e){return"<"+d+">"+e+""},m=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t,n;m=r?function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):(t=c("iframe"),n="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F);for(var o=a.length;o--;)delete m[f][a[o]];return m()};u[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[f]=o(e),n=new h,h[f]=null,n[p]=e):n=m(),void 0===t?n:i(n,t)}},6434:(e,t,n)=>{var r=n(6953),o=n(7614),i=n(1326),a=n(4565);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),u=r.length,l=0;u>l;)o.f(e,n=r[l++],t[n]);return e}},7614:(e,t,n)=>{var r=n(6953),o=n(7106),i=n(1326),a=n(7806),u=Object.defineProperty;t.f=r?u:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},172:(e,t,n)=>{var r=n(6953),o=n(6492),i=n(9367),a=n(3016),u=n(7806),l=n(991),c=n(7106),s=Object.getOwnPropertyDescriptor;t.f=r?s:function(e,t){if(e=a(e),t=u(t,!0),c)try{return s(e,t)}catch(e){}if(l(e,t))return i(!o.f.call(e,t),e[t])}},4113:(e,t,n)=>{var r=n(3016),o=n(4161).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},4161:(e,t,n)=>{var r=n(9583),o=n(4798).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},864:(e,t)=>{t.f=Object.getOwnPropertySymbols},6166:(e,t,n)=>{var r=n(991),o=n(4440),i=n(5868),a=n(6036),u=i("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,u)?e[u]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},9583:(e,t,n)=>{var r=n(991),o=n(3016),i=n(5254).indexOf,a=n(3472);e.exports=function(e,t){var n,u=o(e),l=0,c=[];for(n in u)!r(a,n)&&r(u,n)&&c.push(n);for(;t.length>l;)r(u,n=t[l++])&&(~i(c,n)||c.push(n));return c}},4565:(e,t,n)=>{var r=n(9583),o=n(4798);e.exports=Object.keys||function(e){return r(e,o)}},6492:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},4322:(e,t,n)=>{var r=n(1326),o=n(6637);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},9584:(e,t,n)=>{var r=n(6953),o=n(4565),i=n(3016),a=n(6492).f,u=function(e){return function(t){for(var n,u=i(t),l=o(u),c=l.length,s=0,f=[];c>s;)n=l[s++],r&&!a.call(u,n)||f.push(e?[n,u[n]]:u[n]);return f}};e.exports={entries:u(!0),values:u(!1)}},4536:(e,t,n)=>{"use strict";var r=n(3557),o=n(9794);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},1804:(e,t,n)=>{var r=n(5072),o=n(4161),i=n(864),a=n(1326);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},8844:(e,t,n)=>{var r=n(2756);e.exports=r},1542:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},9191:(e,t,n)=>{var r=n(1326),o=n(6827),i=n(8920);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},5783:(e,t,n)=>{var r=n(57);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},57:(e,t,n)=>{var r=n(2756),o=n(4100),i=n(991),a=n(1979),u=n(1633),l=n(3962),c=l.get,s=l.enforce,f=String(String).split("String");(e.exports=function(e,t,n,u){var l=!!u&&!!u.unsafe,c=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),s(n).source=f.join("string"==typeof t?t:"")),e!==r?(l?!d&&e[t]&&(c=!0):delete e[t],c?e[t]=n:o(e,t,n)):c?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||u(this)}))},5805:(e,t,n)=>{var r=n(661),o=n(5866);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},5866:(e,t,n)=>{"use strict";var r,o,i=n(4768),a=n(4124),u=RegExp.prototype.exec,l=String.prototype.replace,c=u,s=(r=/a/,o=/b*/g,u.call(r,"a"),u.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,d=void 0!==/()??/.exec("")[1];(s||d||f)&&(c=function(e){var t,n,r,o,a=this,c=f&&a.sticky,p=i.call(a),h=a.source,v=0,m=e;return c&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),m=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",m=" "+m,v++),n=new RegExp("^(?:"+h+")",p)),d&&(n=new RegExp("^"+h+"$(?!\\s)",p)),s&&(t=a.lastIndex),r=u.call(c?n:a,m),c?r?(r.input=r.input.slice(v),r[0]=r[0].slice(v),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:s&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),d&&r&&r.length>1&&l.call(r[0],n,(function(){for(o=1;o{"use strict";var r=n(1326);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},4124:(e,t,n)=>{"use strict";var r=n(8462);function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},5065:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},5892:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},1979:(e,t,n)=>{var r=n(2756),o=n(4100);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},6080:(e,t,n)=>{"use strict";var r=n(5072),o=n(7614),i=n(7166),a=n(6953),u=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[u]&&n(t,u,{configurable:!0,get:function(){return this}})}},5142:(e,t,n)=>{var r=n(7614).f,o=n(991),i=n(7166)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},5868:(e,t,n)=>{var r=n(3662),o=n(637),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},410:(e,t,n)=>{var r=n(2756),o=n(1979),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},3662:(e,t,n)=>{var r=n(7690),o=n(410);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},8576:(e,t,n)=>{var r=n(1326),o=n(6689),i=n(7166)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},7354:(e,t,n)=>{var r=n(8462);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},520:(e,t,n)=>{var r=n(8577),o=n(5065),i=function(e){return function(t,n){var i,a,u=String(o(t)),l=r(n),c=u.length;return l<0||l>=c?e?"":void 0:(i=u.charCodeAt(l))<55296||i>56319||l+1===c||(a=u.charCodeAt(l+1))<56320||a>57343?e?u.charAt(l):i:e?u.slice(l,l+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},5722:(e,t,n)=>{var r=n(5441);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},5826:(e,t,n)=>{var r=n(9223),o=n(2936),i=n(5065),a=Math.ceil,u=function(e){return function(t,n,u){var l,c,s=String(i(t)),f=s.length,d=void 0===u?" ":String(u),p=r(n);return p<=f||""==d?s:(l=p-f,(c=o.call(d,a(l/d.length))).length>l&&(c=c.slice(0,l)),e?s+c:c+s)}};e.exports={start:u(!1),end:u(!0)}},5298:e=>{"use strict";var t=2147483647,n=/[^\0-\u007E]/,r=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",i=Math.floor,a=String.fromCharCode,u=function(e){return e+22+75*(e<26)},l=function(e,t,n){var r=0;for(e=n?i(e/700):e>>1,e+=i(e/t);e>455;r+=36)e=i(e/35);return i(r+36*e/(e+38))},c=function(e){var n=[];e=function(e){for(var t=[],n=0,r=e.length;n=55296&&o<=56319&&n=f&&ci((t-d)/g))throw RangeError(o);for(d+=(m-f)*g,f=m,r=0;rt)throw RangeError(o);if(c==f){for(var y=d,b=36;;b+=36){var w=b<=p?1:b>=p+26?26:b-p;if(y{"use strict";var r=n(8577),o=n(5065);e.exports="".repeat||function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},207:(e,t,n)=>{var r=n(5065),o="["+n(7669)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),u=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},3102:(e,t,n)=>{var r,o,i,a=n(2756),u=n(8462),l=n(661),c=n(8273),s=n(1198),f=n(3018),d=n(550),p=a.location,h=a.setImmediate,v=a.clearImmediate,m=a.process,g=a.MessageChannel,y=a.Dispatch,b=0,w={},k="onreadystatechange",x=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},E=function(e){return function(){x(e)}},S=function(e){x(e.data)},O=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};h&&v||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return w[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},v=function(e){delete w[e]},"process"==l(m)?r=function(e){m.nextTick(E(e))}:y&&y.now?r=function(e){y.now(E(e))}:g&&!d?(i=(o=new g).port2,o.port1.onmessage=S,r=c(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||u(O)||"file:"===p.protocol?r=k in f("script")?function(e){s.appendChild(f("script"))[k]=function(){s.removeChild(this),x(e)}}:function(e){setTimeout(E(e),0)}:(r=O,a.addEventListener("message",S,!1))),e.exports={set:h,clear:v}},847:(e,t,n)=>{var r=n(8577),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},3016:(e,t,n)=>{var r=n(8188),o=n(5065);e.exports=function(e){return r(o(e))}},8577:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},9223:(e,t,n)=>{var r=n(8577),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},4440:(e,t,n)=>{var r=n(5065);e.exports=function(e){return Object(r(e))}},7806:(e,t,n)=>{var r=n(6827);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},3557:(e,t,n)=>{var r={};r[n(7166)("toStringTag")]="z",e.exports="[object z]"===String(r)},637:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},4717:(e,t,n)=>{var r=n(3165);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},766:(e,t,n)=>{var r=n(7166);t.f=r},7166:(e,t,n)=>{var r=n(2756),o=n(3662),i=n(991),a=n(637),u=n(3165),l=n(4717),c=o("wks"),s=r.Symbol,f=l?s:s&&s.withoutSetter||a;e.exports=function(e){return i(c,e)||(u&&i(s,e)?c[e]=s[e]:c[e]=f("Symbol."+e)),c[e]}},7669:e=>{e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},5423:(e,t,n)=>{"use strict";var r=n(5689),o=n(8462),i=n(3115),a=n(6827),u=n(4440),l=n(9223),c=n(1861),s=n(5309),f=n(6894),d=n(7166),p=n(5649),h=d("isConcatSpreadable"),v=9007199254740991,m="Maximum allowed index exceeded",g=p>=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),y=f("concat"),b=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!g||!y},{concat:function(e){var t,n,r,o,i,a=u(this),f=s(a,0),d=0;for(t=-1,r=arguments.length;tv)throw TypeError(m);for(n=0;n=v)throw TypeError(m);c(f,d++,i)}return f.length=d,f}})},6264:(e,t,n)=>{"use strict";var r=n(5689),o=n(5860).every,i=n(8809),a=n(778),u=i("every"),l=a("every");r({target:"Array",proto:!0,forced:!u||!l},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},690:(e,t,n)=>{var r=n(5689),o=n(6650),i=n(990);r({target:"Array",proto:!0},{fill:o}),i("fill")},8837:(e,t,n)=>{"use strict";var r=n(5689),o=n(5860).filter,i=n(6894),a=n(778),u=i("filter"),l=a("filter");r({target:"Array",proto:!0,forced:!u||!l},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},8280:(e,t,n)=>{"use strict";var r=n(5689),o=n(5860).find,i=n(990),a=n(778),u="find",l=!0,c=a(u);u in[]&&Array(1)[u]((function(){l=!1})),r({target:"Array",proto:!0,forced:l||!c},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(u)},7316:(e,t,n)=>{"use strict";var r=n(5689),o=n(2284),i=n(4440),a=n(9223),u=n(8577),l=n(5309);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),n=a(t.length),r=l(t,0);return r.length=o(r,t,t,n,0,void 0===e?1:u(e)),r}})},2064:(e,t,n)=>{"use strict";var r=n(5689),o=n(9352);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},7406:(e,t,n)=>{"use strict";var r=n(5689),o=n(5254).includes,i=n(990);r({target:"Array",proto:!0,forced:!n(778)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},3825:(e,t,n)=>{"use strict";var r=n(5689),o=n(5254).indexOf,i=n(8809),a=n(778),u=[].indexOf,l=!!u&&1/[1].indexOf(1,-0)<0,c=i("indexOf"),s=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:l||!c||!s},{indexOf:function(e){return l?u.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},8811:(e,t,n)=>{n(5689)({target:"Array",stat:!0},{isArray:n(3115)})},2493:(e,t,n)=>{"use strict";var r=n(3016),o=n(990),i=n(7240),a=n(3962),u=n(2527),l="Array Iterator",c=a.set,s=a.getterFor(l);e.exports=u(Array,"Array",(function(e,t){c(this,{type:l,target:r(e),index:0,kind:t})}),(function(){var e=s(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},1055:(e,t,n)=>{"use strict";var r=n(5689),o=n(8188),i=n(3016),a=n(8809),u=[].join,l=o!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:l||!c},{join:function(e){return u.call(i(this),void 0===e?",":e)}})},2417:(e,t,n)=>{"use strict";var r=n(5689),o=n(5860).map,i=n(6894),a=n(778),u=i("map"),l=a("map");r({target:"Array",proto:!0,forced:!u||!l},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},8790:(e,t,n)=>{"use strict";var r=n(5689),o=n(9857).left,i=n(8809),a=n(778),u=i("reduce"),l=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!u||!l},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},6889:(e,t,n)=>{"use strict";var r=n(5689),o=n(3115),i=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},3034:(e,t,n)=>{"use strict";var r=n(5689),o=n(6827),i=n(3115),a=n(847),u=n(9223),l=n(3016),c=n(1861),s=n(7166),f=n(6894),d=n(778),p=f("slice"),h=d("slice",{ACCESSORS:!0,0:0,1:2}),v=s("species"),m=[].slice,g=Math.max;r({target:"Array",proto:!0,forced:!p||!h},{slice:function(e,t){var n,r,s,f=l(this),d=u(f.length),p=a(e,d),h=a(void 0===t?d:t,d);if(i(f)&&("function"!=typeof(n=f.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[v])&&(n=void 0):n=void 0,n===Array||void 0===n))return m.call(f,p,h);for(r=new(void 0===n?Array:n)(g(h-p,0)),s=0;p{"use strict";var r=n(5689),o=n(6689),i=n(4440),a=n(8462),u=n(8809),l=[],c=l.sort,s=a((function(){l.sort(void 0)})),f=a((function(){l.sort(null)})),d=u("sort");r({target:"Array",proto:!0,forced:s||!f||!d},{sort:function(e){return void 0===e?c.call(i(this)):c.call(i(this),o(e))}})},4751:(e,t,n)=>{"use strict";var r=n(5689),o=n(847),i=n(8577),a=n(9223),u=n(4440),l=n(5309),c=n(1861),s=n(6894),f=n(778),d=s("splice"),p=f("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!d||!p},{splice:function(e,t){var n,r,s,f,d,p,m=u(this),g=a(m.length),y=o(e,g),b=arguments.length;if(0===b?n=r=0:1===b?(n=0,r=g-y):(n=b-2,r=v(h(i(t),0),g-y)),g+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(s=l(m,r),f=0;fg-r+n;f--)delete m[f-1]}else if(n>r)for(f=g-r;f>y;f--)p=f+n-1,(d=f+r-1)in m?m[p]=m[d]:delete m[p];for(f=0;f{n(990)("flat")},5351:(e,t,n)=>{var r=n(4100),o=n(9565),i=n(7166)("toPrimitive"),a=Date.prototype;i in a||r(a,i,o)},1081:(e,t,n)=>{var r=n(57),o=Date.prototype,i="Invalid Date",a="toString",u=o[a],l=o.getTime;new Date(NaN)+""!=i&&r(o,a,(function(){var e=l.call(this);return e==e?u.call(this):i}))},2825:(e,t,n)=>{n(5689)({target:"Function",proto:!0},{bind:n(8631)})},3145:(e,t,n)=>{var r=n(6953),o=n(7614).f,i=Function.prototype,a=i.toString,u=/^\s*function ([^ (]*)/,l="name";r&&!(l in i)&&o(i,l,{configurable:!0,get:function(){try{return a.call(this).match(u)[1]}catch(e){return""}}})},3190:(e,t,n)=>{n(5689)({global:!0},{globalThis:n(2756)})},4506:(e,t,n)=>{"use strict";var r=n(6939),o=n(8651);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},8589:(e,t,n)=>{"use strict";var r=n(6953),o=n(2756),i=n(5149),a=n(57),u=n(991),l=n(661),c=n(3042),s=n(7806),f=n(8462),d=n(3981),p=n(4161).f,h=n(172).f,v=n(7614).f,m=n(207).trim,g="Number",y=o[g],b=y.prototype,w=l(d(b))==g,k=function(e){var t,n,r,o,i,a,u,l,c=s(e,!1);if("string"==typeof c&&c.length>2)if(43===(t=(c=m(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=c.slice(2)).length,u=0;uo)return NaN;return parseInt(i,r)}return+c};if(i(g,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var x,E=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof E&&(w?f((function(){b.valueOf.call(n)})):l(n)!=g)?c(new y(k(t)),n,E):k(t)},S=r?p(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;S.length>O;O++)u(y,x=S[O])&&!u(E,x)&&v(E,x,h(y,x));E.prototype=b,b.constructor=E,a(o,g,E)}},9206:(e,t,n)=>{var r=n(5689),o=n(9484);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},7047:(e,t,n)=>{n(5689)({target:"Object",stat:!0,sham:!n(6953)},{create:n(3981)})},2395:(e,t,n)=>{var r=n(5689),o=n(9584).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},5130:(e,t,n)=>{var r=n(5689),o=n(6357),i=n(1861);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return o(e,(function(e,n){i(t,e,n)}),void 0,!0),t}})},1240:(e,t,n)=>{var r=n(5689),o=n(8462),i=n(4440),a=n(6166),u=n(6036);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!u},{getPrototypeOf:function(e){return a(i(e))}})},8471:(e,t,n)=>{var r=n(5689),o=n(4440),i=n(4565);r({target:"Object",stat:!0,forced:n(8462)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},4372:(e,t,n)=>{n(5689)({target:"Object",stat:!0},{setPrototypeOf:n(4322)})},570:(e,t,n)=>{var r=n(3557),o=n(57),i=n(4536);r||o(Object.prototype,"toString",i,{unsafe:!0})},3293:(e,t,n)=>{var r=n(5689),o=n(9584).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},8428:(e,t,n)=>{var r=n(5689),o=n(5503);r({global:!0,forced:parseFloat!=o},{parseFloat:o})},3931:(e,t,n)=>{var r=n(5689),o=n(4800);r({global:!0,forced:parseInt!=o},{parseInt:o})},3813:(e,t,n)=>{"use strict";var r,o,i,a,u=n(5689),l=n(7690),c=n(2756),s=n(5072),f=n(653),d=n(57),p=n(5783),h=n(5142),v=n(6080),m=n(6827),g=n(6689),y=n(26),b=n(661),w=n(1633),k=n(6357),x=n(5239),E=n(8576),S=n(3102).set,O=n(4050),T=n(9191),C=n(9974),P=n(8920),I=n(1542),j=n(3962),N=n(5149),R=n(7166),D=n(5649),_=R("species"),M="Promise",A=j.get,L=j.set,F=j.getterFor(M),B=f,z=c.TypeError,U=c.document,H=c.process,V=s("fetch"),W=P.f,$=W,q="process"==b(H),K=!!(U&&U.createEvent&&c.dispatchEvent),G="unhandledrejection",X=N(M,(function(){if(!(w(B)!==String(B))){if(66===D)return!0;if(!q&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!B.prototype.finally)return!0;if(D>=51&&/native code/.test(B))return!1;var e=B.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[_]=t,!(e.then((function(){}))instanceof t)})),Y=X||!x((function(e){B.all(e).catch((function(){}))})),Q=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},J=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;O((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var u,l,c,s=r[a++],f=i?s.ok:s.fail,d=s.resolve,p=s.reject,h=s.domain;try{f?(i||(2===t.rejection&&ne(e,t),t.rejection=1),!0===f?u=o:(h&&h.enter(),u=f(o),h&&(h.exit(),c=!0)),u===s.promise?p(z("Promise-chain cycle")):(l=Q(u))?l.call(u,d,p):d(u)):p(o)}catch(e){h&&!c&&h.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ee(e,t)}))}},Z=function(e,t,n){var r,o;K?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},(o=c["on"+e])?o(r):e===G&&C("Unhandled promise rejection",n)},ee=function(e,t){S.call(c,(function(){var n,r=t.value;if(te(t)&&(n=I((function(){q?H.emit("unhandledRejection",r,e):Z(G,e,r)})),t.rejection=q||te(t)?2:1,n.error))throw n.value}))},te=function(e){return 1!==e.rejection&&!e.parent},ne=function(e,t){S.call(c,(function(){q?H.emit("rejectionHandled",e):Z("rejectionhandled",e,t.value)}))},re=function(e,t,n,r){return function(o){e(t,n,o,r)}},oe=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,J(e,t,!0))},ie=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw z("Promise can't be resolved itself");var o=Q(n);o?O((function(){var r={done:!1};try{o.call(n,re(ie,e,r,t),re(oe,e,r,t))}catch(n){oe(e,r,n,t)}})):(t.value=n,t.state=1,J(e,t,!1))}catch(n){oe(e,{done:!1},n,t)}}};X&&(B=function(e){y(this,B,M),g(e),r.call(this);var t=A(this);try{e(re(ie,this,t),re(oe,this,t))}catch(e){oe(this,t,e)}},(r=function(e){L(this,{type:M,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(B.prototype,{then:function(e,t){var n=F(this),r=W(E(this,B));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=q?H.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&J(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=A(e);this.promise=e,this.resolve=re(ie,e,t),this.reject=re(oe,e,t)},P.f=W=function(e){return e===B||e===i?new o(e):$(e)},l||"function"!=typeof f||(a=f.prototype.then,d(f.prototype,"then",(function(e,t){var n=this;return new B((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof V&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return T(B,V.apply(c,arguments))}}))),u({global:!0,wrap:!0,forced:X},{Promise:B}),h(B,M,!1,!0),v(M),i=s(M),u({target:M,stat:!0,forced:X},{reject:function(e){var t=W(this);return t.reject.call(void 0,e),t.promise}}),u({target:M,stat:!0,forced:l||X},{resolve:function(e){return T(l&&this===i?B:this,e)}}),u({target:M,stat:!0,forced:Y},{all:function(e){var t=this,n=W(t),r=n.resolve,o=n.reject,i=I((function(){var n=g(t.resolve),i=[],a=0,u=1;k(e,(function(e){var l=a++,c=!1;i.push(void 0),u++,n.call(t,e).then((function(e){c||(c=!0,i[l]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=W(t),r=n.reject,o=I((function(){var o=g(t.resolve);k(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},9834:(e,t,n)=>{var r=n(5689),o=n(5072),i=n(6689),a=n(1326),u=n(6827),l=n(3981),c=n(8631),s=n(8462),f=o("Reflect","construct"),d=s((function(){function e(){}return!(f((function(){}),[],e)instanceof e)})),p=!s((function(){f((function(){}))})),h=d||p;r({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(p&&!d)return f(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var o=n.prototype,s=l(u(o)?o:Object.prototype),h=Function.apply.call(e,s,t);return u(h)?h:s}})},5624:(e,t,n)=>{var r=n(5689),o=n(1326),i=n(172).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},9208:(e,t,n)=>{n(5689)({target:"Reflect",stat:!0},{ownKeys:n(1804)})},7309:(e,t,n)=>{var r=n(6953),o=n(2756),i=n(5149),a=n(3042),u=n(7614).f,l=n(4161).f,c=n(5237),s=n(4768),f=n(4124),d=n(57),p=n(8462),h=n(3962).set,v=n(6080),m=n(7166)("match"),g=o.RegExp,y=g.prototype,b=/a/g,w=/a/g,k=new g(b)!==b,x=f.UNSUPPORTED_Y;if(r&&i("RegExp",!k||x||p((function(){return w[m]=!1,g(b)!=b||g(w)==w||"/a/i"!=g(b,"i")})))){for(var E=function(e,t){var n,r=this instanceof E,o=c(e),i=void 0===t;if(!r&&o&&e.constructor===E&&i)return e;k?o&&!i&&(e=e.source):e instanceof E&&(i&&(t=s.call(e)),e=e.source),x&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var u=a(k?new g(e,t):g(e,t),r?this:y,E);return x&&n&&h(u,{sticky:n}),u},S=function(e){e in E||u(E,e,{configurable:!0,get:function(){return g[e]},set:function(t){g[e]=t}})},O=l(g),T=0;O.length>T;)S(O[T++]);y.constructor=E,E.prototype=y,d(o,"RegExp",E)}v("RegExp")},3188:(e,t,n)=>{"use strict";var r=n(5689),o=n(5866);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},844:(e,t,n)=>{"use strict";var r=n(57),o=n(1326),i=n(8462),a=n(4768),u="toString",l=RegExp.prototype,c=l[u],s=i((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),f=c.name!=u;(s||f)&&r(RegExp.prototype,u,(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in l)?a.call(e):n)}),{unsafe:!0})},2352:(e,t,n)=>{"use strict";var r=n(6939),o=n(8651);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},9696:(e,t,n)=>{"use strict";var r=n(5689),o=n(7179);r({target:"String",proto:!0,forced:n(7354)("anchor")},{anchor:function(e){return o(this,"a","name",e)}})},5448:(e,t,n)=>{"use strict";var r=n(5689),o=n(1960),i=n(5065);r({target:"String",proto:!0,forced:!n(3301)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},3343:(e,t,n)=>{"use strict";var r=n(520).charAt,o=n(3962),i=n(2527),a="String Iterator",u=o.set,l=o.getterFor(a);i(String,"String",(function(e){u(this,{type:a,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},6552:(e,t,n)=>{"use strict";var r=n(6031),o=n(1326),i=n(9223),a=n(5065),u=n(4958),l=n(5805);r("match",1,(function(e,t,n){return[function(t){var n=a(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var a=o(e),c=String(this);if(!a.global)return l(a,c);var s=a.unicode;a.lastIndex=0;for(var f,d=[],p=0;null!==(f=l(a,c));){var h=String(f[0]);d[p]=h,""===h&&(a.lastIndex=u(c,i(a.lastIndex),s)),p++}return 0===p?null:d}]}))},693:(e,t,n)=>{"use strict";var r=n(5689),o=n(5826).start;r({target:"String",proto:!0,forced:n(5722)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},9297:(e,t,n)=>{"use strict";var r=n(6031),o=n(1326),i=n(4440),a=n(9223),u=n(8577),l=n(5065),c=n(4958),s=n(5805),f=Math.max,d=Math.min,p=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var m=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=r.REPLACE_KEEPS_$0,y=m?"$":"$0";return[function(n,r){var o=l(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!m&&g||"string"==typeof r&&-1===r.indexOf(y)){var i=n(t,e,this,r);if(i.done)return i.value}var l=o(e),p=String(this),h="function"==typeof r;h||(r=String(r));var v=l.global;if(v){var w=l.unicode;l.lastIndex=0}for(var k=[];;){var x=s(l,p);if(null===x)break;if(k.push(x),!v)break;""===String(x[0])&&(l.lastIndex=c(p,a(l.lastIndex),w))}for(var E,S="",O=0,T=0;T=O&&(S+=p.slice(O,P)+D,O=P+C.length)}return S+p.slice(O)}];function b(e,n,r,o,a,u){var l=r+e.length,c=o.length,s=v;return void 0!==a&&(a=i(a),s=h),t.call(u,s,(function(t,i){var u;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":u=a[i.slice(1,-1)];break;default:var s=+i;if(0===s)return t;if(s>c){var f=p(s/10);return 0===f?t:f<=c?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):t}u=o[s-1]}return void 0===u?"":u}))}}))},2773:(e,t,n)=>{"use strict";var r=n(6031),o=n(5237),i=n(1326),a=n(5065),u=n(8576),l=n(4958),c=n(9223),s=n(5805),f=n(5866),d=n(8462),p=[].push,h=Math.min,v=4294967295,m=!d((function(){return!RegExp(v,"y")}));r("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(a(this)),i=void 0===n?v:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,i);for(var u,l,c,s=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,m=new RegExp(e.source,d+"g");(u=f.call(m,r))&&!((l=m.lastIndex)>h&&(s.push(r.slice(h,u.index)),u.length>1&&u.index=i));)m.lastIndex===u.index&&m.lastIndex++;return h===r.length?!c&&m.test("")||s.push(""):s.push(r.slice(h)),s.length>i?s.slice(0,i):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=a(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var a=n(r,e,this,o,r!==t);if(a.done)return a.value;var f=i(e),d=String(this),p=u(f,RegExp),g=f.unicode,y=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(m?"y":"g"),b=new p(m?f:"^(?:"+f.source+")",y),w=void 0===o?v:o>>>0;if(0===w)return[];if(0===d.length)return null===s(b,d)?[d]:[];for(var k=0,x=0,E=[];x{"use strict";var r,o=n(5689),i=n(172).f,a=n(9223),u=n(1960),l=n(5065),c=n(3301),s=n(7690),f="".startsWith,d=Math.min,p=c("startsWith");o({target:"String",proto:!0,forced:!!(s||p||(r=i(String.prototype,"startsWith"),!r||r.writable))&&!p},{startsWith:function(e){var t=String(l(this));u(e);var n=a(d(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return f?f.call(t,r,n):t.slice(n,n+r.length)===r}})},4290:(e,t,n)=>{"use strict";var r=n(5689),o=n(6953),i=n(2756),a=n(991),u=n(6827),l=n(7614).f,c=n(9621),s=i.Symbol;if(o&&"function"==typeof s&&(!("description"in s.prototype)||void 0!==s().description)){var f={},d=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof d?new s(e):void 0===e?s():s(e);return""===e&&(f[t]=!0),t};c(d,s);var p=d.prototype=s.prototype;p.constructor=d;var h=p.toString,v="Symbol(test)"==String(s("test")),m=/^Symbol\((.*)\)[^)]+$/;l(p,"description",{configurable:!0,get:function(){var e=u(this)?this.valueOf():this,t=h.call(e);if(a(f,e))return"";var n=v?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},4162:(e,t,n)=>{"use strict";var r=n(5689),o=n(2756),i=n(5072),a=n(7690),u=n(6953),l=n(3165),c=n(4717),s=n(8462),f=n(991),d=n(3115),p=n(6827),h=n(1326),v=n(4440),m=n(3016),g=n(7806),y=n(9367),b=n(3981),w=n(4565),k=n(4161),x=n(4113),E=n(864),S=n(172),O=n(7614),T=n(6492),C=n(4100),P=n(57),I=n(3662),j=n(5868),N=n(3472),R=n(637),D=n(7166),_=n(766),M=n(4300),A=n(5142),L=n(3962),F=n(5860).forEach,B=j("hidden"),z="Symbol",U="prototype",H=D("toPrimitive"),V=L.set,W=L.getterFor(z),$=Object[U],q=o.Symbol,K=i("JSON","stringify"),G=S.f,X=O.f,Y=x.f,Q=T.f,J=I("symbols"),Z=I("op-symbols"),ee=I("string-to-symbol-registry"),te=I("symbol-to-string-registry"),ne=I("wks"),re=o.QObject,oe=!re||!re[U]||!re[U].findChild,ie=u&&s((function(){return 7!=b(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=G($,t);r&&delete $[t],X(e,t,n),r&&e!==$&&X($,t,r)}:X,ae=function(e,t){var n=J[e]=b(q[U]);return V(n,{type:z,tag:e,description:t}),u||(n.description=t),n},ue=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},le=function(e,t,n){e===$&&le(Z,t,n),h(e);var r=g(t,!0);return h(n),f(J,r)?(n.enumerable?(f(e,B)&&e[B][r]&&(e[B][r]=!1),n=b(n,{enumerable:y(0,!1)})):(f(e,B)||X(e,B,y(1,{})),e[B][r]=!0),ie(e,r,n)):X(e,r,n)},ce=function(e,t){h(e);var n=m(t),r=w(n).concat(pe(n));return F(r,(function(t){u&&!se.call(n,t)||le(e,t,n[t])})),e},se=function(e){var t=g(e,!0),n=Q.call(this,t);return!(this===$&&f(J,t)&&!f(Z,t))&&(!(n||!f(this,t)||!f(J,t)||f(this,B)&&this[B][t])||n)},fe=function(e,t){var n=m(e),r=g(t,!0);if(n!==$||!f(J,r)||f(Z,r)){var o=G(n,r);return!o||!f(J,r)||f(n,B)&&n[B][r]||(o.enumerable=!0),o}},de=function(e){var t=Y(m(e)),n=[];return F(t,(function(e){f(J,e)||f(N,e)||n.push(e)})),n},pe=function(e){var t=e===$,n=Y(t?Z:m(e)),r=[];return F(n,(function(e){!f(J,e)||t&&!f($,e)||r.push(J[e])})),r};(l||(P((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=R(e),n=function(e){this===$&&n.call(Z,e),f(this,B)&&f(this[B],t)&&(this[B][t]=!1),ie(this,t,y(1,e))};return u&&oe&&ie($,t,{configurable:!0,set:n}),ae(t,e)})[U],"toString",(function(){return W(this).tag})),P(q,"withoutSetter",(function(e){return ae(R(e),e)})),T.f=se,O.f=le,S.f=fe,k.f=x.f=de,E.f=pe,_.f=function(e){return ae(D(e),e)},u&&(X(q[U],"description",{configurable:!0,get:function(){return W(this).description}}),a||P($,"propertyIsEnumerable",se,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),F(w(ne),(function(e){M(e)})),r({target:z,stat:!0,forced:!l},{for:function(e){var t=String(e);if(f(ee,t))return ee[t];var n=q(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!ue(e))throw TypeError(e+" is not a symbol");if(f(te,e))return te[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!u},{create:function(e,t){return void 0===t?b(e):ce(b(e),t)},defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:fe}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:de,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:s((function(){E.f(1)}))},{getOwnPropertySymbols:function(e){return E.f(v(e))}}),K)&&r({target:"JSON",stat:!0,forced:!l||s((function(){var e=q();return"[null]"!=K([e])||"{}"!=K({a:e})||"{}"!=K(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(p(t)||void 0!==e)&&!ue(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ue(t))return t}),o[1]=t,K.apply(null,o)}});q[U][H]||C(q[U],H,q[U].valueOf),A(q,z),N[B]=!0},2111:(e,t,n)=>{n(4300)("toPrimitive")},4007:(e,t,n)=>{n(3190)},8808:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(9637);r({target:"Map",proto:!0,real:!0,forced:o},{deleteAll:function(){return i.apply(this,arguments)}})},7250:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(8273),u=n(4159),l=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{every:function(e){var t=i(this),n=u(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return!l(n,(function(e,n){if(!r(n,e,t))return l.stop()}),void 0,!0,!0).stopped}})},4395:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8273),c=n(8576),s=n(4159),f=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{filter:function(e){var t=a(this),n=s(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),o=new(c(t,i("Map"))),d=u(o.set);return f(n,(function(e,n){r(n,e,t)&&d.call(o,e,n)}),void 0,!0,!0),o}})},1476:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(8273),u=n(4159),l=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{findKey:function(e){var t=i(this),n=u(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n){if(r(n,e,t))return l.stop(e)}),void 0,!0,!0).result}})},6934:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(8273),u=n(4159),l=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{find:function(e){var t=i(this),n=u(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n){if(r(n,e,t))return l.stop(n)}),void 0,!0,!0).result}})},3560:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(4159),u=n(5892),l=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{includes:function(e){return l(a(i(this)),(function(t,n){if(u(n,e))return l.stop()}),void 0,!0,!0).stopped}})},9414:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(4159),u=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{keyOf:function(e){return u(a(i(this)),(function(t,n){if(n===e)return u.stop(t)}),void 0,!0,!0).result}})},5152:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8273),c=n(8576),s=n(4159),f=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{mapKeys:function(e){var t=a(this),n=s(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),o=new(c(t,i("Map"))),d=u(o.set);return f(n,(function(e,n){d.call(o,r(n,e,t),n)}),void 0,!0,!0),o}})},2314:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8273),c=n(8576),s=n(4159),f=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{mapValues:function(e){var t=a(this),n=s(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),o=new(c(t,i("Map"))),d=u(o.set);return f(n,(function(e,n){d.call(o,e,r(n,e,t))}),void 0,!0,!0),o}})},8525:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(6689),u=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{merge:function(e){for(var t=i(this),n=a(t.set),r=0;r{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(6689),u=n(4159),l=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{reduce:function(e){var t=i(this),n=u(t),r=arguments.length<2,o=r?void 0:arguments[1];if(a(e),l(n,(function(n,i){r?(r=!1,o=i):o=e(o,i,n,t)}),void 0,!0,!0),r)throw TypeError("Reduce of empty map with no initial value");return o}})},9709:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(8273),u=n(4159),l=n(6357);r({target:"Map",proto:!0,real:!0,forced:o},{some:function(e){var t=i(this),n=u(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n){if(r(n,e,t))return l.stop()}),void 0,!0,!0).stopped}})},3992:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(6689);r({target:"Map",proto:!0,real:!0,forced:o},{update:function(e,t){var n=i(this),r=arguments.length;a(t);var o=n.has(e);if(!o&&r<3)throw TypeError("Updating absent value");var u=o?n.get(e):a(r>2?arguments[2]:void 0)(e,n);return n.set(e,t(u,e,n)),n}})},578:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(431);r({target:"Set",proto:!0,real:!0,forced:o},{addAll:function(){return i.apply(this,arguments)}})},50:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(9637);r({target:"Set",proto:!0,real:!0,forced:o},{deleteAll:function(){return i.apply(this,arguments)}})},2344:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8576),c=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{difference:function(e){var t=a(this),n=new(l(t,i("Set")))(t),r=u(n.delete);return c(e,(function(e){r.call(n,e)})),n}})},9616:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(8273),u=n(8641),l=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{every:function(e){var t=i(this),n=u(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return!l(n,(function(e){if(!r(e,e,t))return l.stop()}),void 0,!1,!0).stopped}})},6125:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8273),c=n(8576),s=n(8641),f=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{filter:function(e){var t=a(this),n=s(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),o=new(c(t,i("Set"))),d=u(o.add);return f(n,(function(e){r(e,e,t)&&d.call(o,e)}),void 0,!1,!0),o}})},3536:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(8273),u=n(8641),l=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{find:function(e){var t=i(this),n=u(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e){if(r(e,e,t))return l.stop(e)}),void 0,!1,!0).result}})},2886:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8576),c=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{intersection:function(e){var t=a(this),n=new(l(t,i("Set"))),r=u(t.has),o=u(n.add);return c(e,(function(e){r.call(t,e)&&o.call(n,e)})),n}})},3081:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(6689),u=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{isDisjointFrom:function(e){var t=i(this),n=a(t.has);return!u(e,(function(e){if(!0===n.call(t,e))return u.stop()})).stopped}})},278:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(898),c=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{isSubsetOf:function(e){var t=l(this),n=a(e),r=n.has;return"function"!=typeof r&&(n=new(i("Set"))(e),r=u(n.has)),!c(t,(function(e){if(!1===r.call(n,e))return c.stop()}),void 0,!1,!0).stopped}})},7383:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(6689),u=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{isSupersetOf:function(e){var t=i(this),n=a(t.has);return!u(e,(function(e){if(!1===n.call(t,e))return u.stop()})).stopped}})},231:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(8641),u=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{join:function(e){var t=i(this),n=a(t),r=void 0===e?",":String(e),o=[];return u(n,o.push,o,!1,!0),o.join(r)}})},6409:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8273),c=n(8576),s=n(8641),f=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{map:function(e){var t=a(this),n=s(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),o=new(c(t,i("Set"))),d=u(o.add);return f(n,(function(e){d.call(o,r(e,e,t))}),void 0,!1,!0),o}})},8113:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(6689),u=n(8641),l=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{reduce:function(e){var t=i(this),n=u(t),r=arguments.length<2,o=r?void 0:arguments[1];if(a(e),l(n,(function(n){r?(r=!1,o=n):o=e(o,n,n,t)}),void 0,!1,!0),r)throw TypeError("Reduce of empty set with no initial value");return o}})},4695:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(1326),a=n(8273),u=n(8641),l=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{some:function(e){var t=i(this),n=u(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e){if(r(e,e,t))return l.stop()}),void 0,!1,!0).stopped}})},378:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8576),c=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{symmetricDifference:function(e){var t=a(this),n=new(l(t,i("Set")))(t),r=u(n.delete),o=u(n.add);return c(e,(function(e){r.call(n,e)||o.call(n,e)})),n}})},2548:(e,t,n)=>{"use strict";var r=n(5689),o=n(7690),i=n(5072),a=n(1326),u=n(6689),l=n(8576),c=n(6357);r({target:"Set",proto:!0,real:!0,forced:o},{union:function(e){var t=a(this),n=new(l(t,i("Set")))(t);return c(e,u(n.add),n),n}})},3449:(e,t,n)=>{"use strict";var r=n(5689),o=n(520).charAt;r({target:"String",proto:!0},{at:function(e){return o(this,e)}})},4439:(e,t,n)=>{var r=n(2756),o=n(8993),i=n(9352),a=n(4100);for(var u in o){var l=r[u],c=l&&l.prototype;if(c&&c.forEach!==i)try{a(c,"forEach",i)}catch(e){c.forEach=i}}},7046:(e,t,n)=>{var r=n(2756),o=n(8993),i=n(2493),a=n(4100),u=n(7166),l=u("iterator"),c=u("toStringTag"),s=i.values;for(var f in o){var d=r[f],p=d&&d.prototype;if(p){if(p[l]!==s)try{a(p,l,s)}catch(e){p[l]=s}if(p[c]||a(p,c,f),o[f])for(var h in i)if(p[h]!==i[h])try{a(p,h,i[h])}catch(e){p[h]=i[h]}}}},1912:(e,t,n)=>{var r=n(5689),o=n(2756),i=n(5441),a=[].slice,u=function(e){return function(t,n){var r=arguments.length>2,o=r?a.call(arguments,2):void 0;return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(i)},{setTimeout:u(o.setTimeout),setInterval:u(o.setInterval)})},6169:(e,t,n)=>{"use strict";n(2493);var r=n(5689),o=n(5072),i=n(5336),a=n(57),u=n(5783),l=n(5142),c=n(3087),s=n(3962),f=n(26),d=n(991),p=n(8273),h=n(9794),v=n(1326),m=n(6827),g=n(3981),y=n(9367),b=n(898),w=n(3054),k=n(7166),x=o("fetch"),E=o("Headers"),S=k("iterator"),O="URLSearchParams",T=O+"Iterator",C=s.set,P=s.getterFor(O),I=s.getterFor(T),j=/\+/g,N=Array(4),R=function(e){return N[e-1]||(N[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},D=function(e){try{return decodeURIComponent(e)}catch(t){return e}},_=function(e){var t=e.replace(j," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(R(n--),D);return t}},M=/[!'()~]|%20/g,A={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},L=function(e){return A[e]},F=function(e){return encodeURIComponent(e).replace(M,L)},B=function(e,t){if(t)for(var n,r,o=t.split("&"),i=0;i0?arguments[0]:void 0,s=[];if(C(this,{type:O,entries:s,updateURL:function(){},updateSearchParams:z}),void 0!==c)if(m(c))if("function"==typeof(e=w(c)))for(n=(t=e.call(c)).next;!(r=n.call(t)).done;){if((a=(i=(o=b(v(r.value))).next).call(o)).done||(u=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");s.push({key:a.value+"",value:u.value+""})}else for(l in c)d(c,l)&&s.push({key:l,value:c[l]+""});else B(s,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},W=V.prototype;u(W,{append:function(e,t){U(arguments.length,2);var n=P(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){U(arguments.length,1);for(var t=P(this),n=t.entries,r=e+"",o=0;oe.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){for(var t,n=P(this).entries,r=p(e,arguments.length>1?arguments[1]:void 0,3),o=0;o1&&(m(t=arguments[1])&&(n=t.body,h(n)===O&&((r=t.headers?new E(t.headers):new E).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=g(t,{body:y(0,String(n)),headers:y(0,r)}))),o.push(t)),x.apply(this,o)}}),e.exports={URLSearchParams:V,getState:P}},473:(e,t,n)=>{"use strict";n(3343);var r,o=n(5689),i=n(6953),a=n(5336),u=n(2756),l=n(6434),c=n(57),s=n(26),f=n(991),d=n(9484),p=n(1871),h=n(520).codeAt,v=n(5298),m=n(5142),g=n(6169),y=n(3962),b=u.URL,w=g.URLSearchParams,k=g.getState,x=y.set,E=y.getterFor("URL"),S=Math.floor,O=Math.pow,T="Invalid scheme",C="Invalid host",P="Invalid port",I=/[A-Za-z]/,j=/[\d+-.A-Za-z]/,N=/\d/,R=/^(0x|0X)/,D=/^[0-7]+$/,_=/^\d+$/,M=/^[\dA-Fa-f]+$/,A=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,L=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,F=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,B=/[\u0009\u000A\u000D]/g,z=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return C;if(!(n=H(t.slice(1,-1))))return C;e.host=n}else if(Y(e)){if(t=v(t),A.test(t))return C;if(null===(n=U(t)))return C;e.host=n}else{if(L.test(t))return C;for(n="",r=p(t),o=0;o4)return e;for(n=[],r=0;r1&&"0"==o.charAt(0)&&(i=R.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?_:8==i?D:M).test(o))return e;a=parseInt(o,i)}n.push(a)}for(r=0;r=O(256,5-t))return null}else if(a>255)return null;for(u=n.pop(),r=0;r6)return;for(r=0;d();){if(o=null,r>0){if(!("."==d()&&r<4))return;f++}if(!N.test(d()))return;for(;N.test(d());){if(i=parseInt(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}l[c]=256*l[c]+o,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==d()){if(f++,!d())return}else if(d())return;l[c++]=t}else{if(null!==s)return;f++,s=++c}}if(null!==s)for(a=c-s,c=7;0!=c&&a>0;)u=l[c],l[c--]=l[s+a-1],l[s+--a]=u;else if(8!=c)return;return l},V=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=S(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},W={},$=d({},W,{" ":1,'"':1,"<":1,">":1,"`":1}),q=d({},$,{"#":1,"?":1,"{":1,"}":1}),K=d({},q,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),G=function(e,t){var n=h(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},X={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Y=function(e){return f(X,e.scheme)},Q=function(e){return""!=e.username||""!=e.password},J=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Z=function(e,t){var n;return 2==e.length&&I.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ee=function(e){var t;return e.length>1&&Z(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},te=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&Z(t[0],!0)||t.pop()},ne=function(e){return"."===e||"%2e"===e.toLowerCase()},re={},oe={},ie={},ae={},ue={},le={},ce={},se={},fe={},de={},pe={},he={},ve={},me={},ge={},ye={},be={},we={},ke={},xe={},Ee={},Se=function(e,t,n,o){var i,a,u,l,c,s=n||re,d=0,h="",v=!1,m=!1,g=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(F,"")),t=t.replace(B,""),i=p(t);d<=i.length;){switch(a=i[d],s){case re:if(!a||!I.test(a)){if(n)return T;s=ie;continue}h+=a.toLowerCase(),s=oe;break;case oe:if(a&&(j.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(n)return T;h="",s=ie,d=0;continue}if(n&&(Y(e)!=f(X,h)||"file"==h&&(Q(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(Y(e)&&X[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?s=me:Y(e)&&o&&o.scheme==e.scheme?s=ae:Y(e)?s=se:"/"==i[d+1]?(s=ue,d++):(e.cannotBeABaseURL=!0,e.path.push(""),s=ke)}break;case ie:if(!o||o.cannotBeABaseURL&&"#"!=a)return T;if(o.cannotBeABaseURL&&"#"==a){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,s=Ee;break}s="file"==o.scheme?me:le;continue;case ae:if("/"!=a||"/"!=i[d+1]){s=le;continue}s=fe,d++;break;case ue:if("/"==a){s=de;break}s=we;continue;case le:if(e.scheme=o.scheme,a==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==a||"\\"==a&&Y(e))s=ce;else if("?"==a)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",s=xe;else{if("#"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),s=we;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",s=Ee}break;case ce:if(!Y(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,s=we;continue}s=de}else s=fe;break;case se:if(s=fe,"/"!=a||"/"!=h.charAt(d+1))continue;d++;break;case fe:if("/"!=a&&"\\"!=a){s=de;continue}break;case de:if("@"==a){v&&(h="%40"+h),v=!0,u=p(h);for(var y=0;y65535)return P;e.port=Y(e)&&k===X[e.scheme]?null:k,h=""}if(n)return;s=be;continue}return P}h+=a;break;case me:if(e.scheme="file","/"==a||"\\"==a)s=ge;else{if(!o||"file"!=o.scheme){s=we;continue}if(a==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==a)e.host=o.host,e.path=o.path.slice(),e.query="",s=xe;else{if("#"!=a){ee(i.slice(d).join(""))||(e.host=o.host,e.path=o.path.slice(),te(e)),s=we;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",s=Ee}}break;case ge:if("/"==a||"\\"==a){s=ye;break}o&&"file"==o.scheme&&!ee(i.slice(d).join(""))&&(Z(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),s=we;continue;case ye:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&Z(h))s=we;else if(""==h){if(e.host="",n)return;s=be}else{if(l=z(e,h))return l;if("localhost"==e.host&&(e.host=""),n)return;h="",s=be}continue}h+=a;break;case be:if(Y(e)){if(s=we,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(s=we,"/"!=a))continue}else e.fragment="",s=Ee;else e.query="",s=xe;break;case we:if(a==r||"/"==a||"\\"==a&&Y(e)||!n&&("?"==a||"#"==a)){if(".."===(c=(c=h).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(te(e),"/"==a||"\\"==a&&Y(e)||e.path.push("")):ne(h)?"/"==a||"\\"==a&&Y(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Z(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",s=xe):"#"==a&&(e.fragment="",s=Ee)}else h+=G(a,q);break;case ke:"?"==a?(e.query="",s=xe):"#"==a?(e.fragment="",s=Ee):a!=r&&(e.path[0]+=G(a,W));break;case xe:n||"#"!=a?a!=r&&("'"==a&&Y(e)?e.query+="%27":e.query+="#"==a?"%23":G(a,W)):(e.fragment="",s=Ee);break;case Ee:a!=r&&(e.fragment+=G(a,$))}d++}},Oe=function(e){var t,n,r=s(this,Oe,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(e),u=x(r,{type:"URL"});if(void 0!==o)if(o instanceof Oe)t=E(o);else if(n=Se(t={},String(o)))throw TypeError(n);if(n=Se(u,a,null,t))throw TypeError(n);var l=u.searchParams=new w,c=k(l);c.updateSearchParams(u.query),c.updateURL=function(){u.query=String(l)||null},i||(r.href=Ce.call(r),r.origin=Pe.call(r),r.protocol=Ie.call(r),r.username=je.call(r),r.password=Ne.call(r),r.host=Re.call(r),r.hostname=De.call(r),r.port=_e.call(r),r.pathname=Me.call(r),r.search=Ae.call(r),r.searchParams=Le.call(r),r.hash=Fe.call(r))},Te=Oe.prototype,Ce=function(){var e=E(this),t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,u=e.query,l=e.fragment,c=t+":";return null!==o?(c+="//",Q(e)&&(c+=n+(r?":"+r:"")+"@"),c+=V(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==u&&(c+="?"+u),null!==l&&(c+="#"+l),c},Pe=function(){var e=E(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&Y(e)?t+"://"+V(e.host)+(null!==n?":"+n:""):"null"},Ie=function(){return E(this).scheme+":"},je=function(){return E(this).username},Ne=function(){return E(this).password},Re=function(){var e=E(this),t=e.host,n=e.port;return null===t?"":null===n?V(t):V(t)+":"+n},De=function(){var e=E(this).host;return null===e?"":V(e)},_e=function(){var e=E(this).port;return null===e?"":String(e)},Me=function(){var e=E(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ae=function(){var e=E(this).query;return e?"?"+e:""},Le=function(){return E(this).searchParams},Fe=function(){var e=E(this).fragment;return e?"#"+e:""},Be=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&l(Te,{href:Be(Ce,(function(e){var t=E(this),n=String(e),r=Se(t,n);if(r)throw TypeError(r);k(t.searchParams).updateSearchParams(t.query)})),origin:Be(Pe),protocol:Be(Ie,(function(e){var t=E(this);Se(t,String(e)+":",re)})),username:Be(je,(function(e){var t=E(this),n=p(String(e));if(!J(t)){t.username="";for(var r=0;r{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var u=new o(r,i||e,a),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],u]:e._events[l].push(u):(e._events[l]=u,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function u(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),u.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},u.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},1664:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,u=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l-1&&r<=c)for(;++n3?"WebKit":/\bOpera\b/.test(B)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(F)&&"WebKit"||!F&&/\bMSIE\b/i.test(t)&&("Mac OS"==H?"Tasman":"Trident")||"WebKit"==F&&/\bPlayStation\b(?! Vita\b)/i.test(B)&&"NetFront")&&(F=[u]),"IE"==B&&(u=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(B+=" Mobile",H="Windows Phone "+(/\+$/.test(u)?u:u+".x"),_.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(B="IE Mobile",H="Windows Phone 8.x",_.unshift("desktop mode"),L||(L=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=B&&"Trident"==F&&(u=/\brv:([\d.]+)/.exec(t))&&(B&&_.push("identifying as "+B+(L?" "+L:"")),B="IE",L=u[1]),A){if(f="global",d=null!=(c=n)?typeof c[f]:"number",/^(?:boolean|number|string|undefined)$/.test(d)||"object"==d&&!c[f])g(u=n.runtime)==x?(B="Adobe AIR",H=u.flash.system.Capabilities.os):g(u=n.phantom)==O?(B="PhantomJS",L=(u=u.version||null)&&u.major+"."+u.minor+"."+u.patch):"number"==typeof j.documentMode&&(u=/\bTrident\/(\d+)/i.exec(t))?(L=[L,j.documentMode],(u=+u[1]+4)!=L[1]&&(_.push("IE "+L[1]+" mode"),F&&(F[1]=""),L[1]=u),L="IE"==B?String(L[1].toFixed(1)):L[0]):"number"==typeof j.documentMode&&/^(?:Chrome|Firefox)\b/.test(B)&&(_.push("masking as "+B+" "+L),B="IE",L="11.0",F=["Trident"],H="Windows");else if(T&&(D=(u=T.lang.System).getProperty("os.arch"),H=H||u.getProperty("os.name")+" "+u.getProperty("os.version")),C){try{L=n.require("ringo/engine").version.join("."),B="RingoJS"}catch(e){(u=n.system)&&u.global.system==n.system&&(B="Narwhal",H||(H=u[0].os||null))}B||(B="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(u=n.process)&&("object"==typeof u.versions&&("string"==typeof u.versions.electron?(_.push("Node "+u.versions.node),B="Electron",L=u.versions.electron):"string"==typeof u.versions.nw&&(_.push("Chromium "+L,"Node "+u.versions.node),B="NW.js",L=u.versions.nw)),B||(B="Node.js",D=u.arch,H=u.platform,L=(L=/[\d.]+/.exec(u.version))?L[0]:null));H=H&&v(H)}if(L&&(u=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(L)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(A&&o.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(M=/b/i.test(u)?"beta":"alpha",L=L.replace(RegExp(u+"\\+?$"),"")+("beta"==M?I:P)+(/\d+\+?/.exec(u)||"")),"Fennec"==B||"Firefox"==B&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(H))B="Firefox Mobile";else if("Maxthon"==B&&L)L=L.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(z))"Xbox 360"==z&&(H=null),"Xbox 360"==z&&/\bIEMobile\b/.test(t)&&_.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(B)&&(!B||z||/Browser|Mobi/.test(B))||"Windows CE"!=H&&!/Mobi/i.test(t))if("IE"==B&&A)try{null===n.external&&_.unshift("platform preview")}catch(e){_.unshift("embedded")}else(/\bBlackBerry\b/.test(z)||/\bBB10\b/.test(t))&&(u=(RegExp(z.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||L)?(H=((u=[u,/BB10/.test(t)])[1]?(z=null,U="BlackBerry"):"Device Software")+" "+u[0],L=null):this!=m&&"Wii"!=z&&(A&&N||/Opera/.test(B)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==B&&/\bOS X (?:\d+\.){2,}/.test(H)||"IE"==B&&(H&&!/^Win/.test(H)&&L>5.5||/\bWindows XP\b/.test(H)&&L>8||8==L&&!/\bTrident\b/.test(t)))&&!s.test(u=e.call(m,t.replace(s,"")+";"))&&u.name&&(u="ing as "+u.name+((u=u.version)?" "+u:""),s.test(B)?(/\bIE\b/.test(u)&&"Mac OS"==H&&(H=null),u="identify"+u):(u="mask"+u,B=R?v(R.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(u)&&(H=null),A||(L=null)),F=["Presto"],_.push(u));else B+=" Mobile";(u=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(u=[parseFloat(u.replace(/\.(\d)$/,".0$1")),u],"Safari"==B&&"+"==u[1].slice(-1)?(B="WebKit Nightly",M="alpha",L=u[1].slice(0,-1)):L!=u[1]&&L!=(u[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(L=null),u[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(t)||0)[1],537.36==u[0]&&537.36==u[2]&&parseFloat(u[1])>=28&&"WebKit"==F&&(F=["Blink"]),A&&(h||u[1])?(F&&(F[1]="like Chrome"),u=u[1]||((u=u[0])<530?1:u<532?2:u<532.05?3:u<533?4:u<534.03?5:u<534.07?6:u<534.1?7:u<534.13?8:u<534.16?9:u<534.24?10:u<534.3?11:u<535.01?12:u<535.02?"13+":u<535.07?15:u<535.11?16:u<535.19?17:u<536.05?18:u<536.1?19:u<537.01?20:u<537.11?"21+":u<537.13?23:u<537.18?24:u<537.24?25:u<537.36?26:"Blink"!=F?"27":"28")):(F&&(F[1]="like Safari"),u=(u=u[0])<400?1:u<500?2:u<526?3:u<533?4:u<534?"4+":u<535?5:u<537?6:u<538?7:u<601?8:u<602?9:u<604?10:u<606?11:u<608?12:"12"),F&&(F[1]+=" "+(u+="number"==typeof u?".x":/[.+]/.test(u)?"":"+")),"Safari"==B&&(!L||parseInt(L)>45)?L=u:"Chrome"==B&&/\bHeadlessChrome/i.test(t)&&_.unshift("headless")),"Opera"==B&&(u=/\bzbov|zvav$/.exec(H))?(B+=" ",_.unshift("desktop mode"),"zvav"==u?(B+="Mini",L=null):B+="Mobile",H=H.replace(RegExp(" *"+u+"$"),"")):"Safari"==B&&/\bChrome\b/.exec(F&&F[1])?(_.unshift("desktop mode"),B="Chrome Mobile",L=null,/\bOS X\b/.test(H)?(U="Apple",H="iOS 4.3+"):H=null):/\bSRWare Iron\b/.test(B)&&!L&&(L=W("Chrome")),L&&0==L.indexOf(u=/[\d.]+$/.exec(H))&&t.indexOf("/"+u+"-")>-1&&(H=w(H.replace(u,""))),H&&-1!=H.indexOf(B)&&!RegExp(B+" OS").test(H)&&(H=H.replace(RegExp(" *"+y(B)+" *"),"")),F&&!/\b(?:Avant|Nook)\b/.test(B)&&(/Browser|Lunascape|Maxthon/.test(B)||"Safari"!=B&&/^iOS/.test(H)&&/\bSafari\b/.test(F[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(B)&&F[1])&&(u=F[F.length-1])&&_.push(u),_.length&&(_=["("+_.join("; ")+")"]),U&&z&&z.indexOf(U)<0&&_.push("on "+U),z&&_.push((/^on /.test(_[_.length-1])?"":"on ")+z),H&&(u=/ ([\d.+]+)$/.exec(H),l=u&&"/"==H.charAt(H.length-u[0].length-1),H={architecture:32,family:u&&!l?H.replace(u[0],""):H,version:u?u[1]:null,toString:function(){var e=this.version;return this.family+(e&&!l?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(u=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(D))&&!/\bi686\b/i.test(D)?(H&&(H.architecture=64,H.family=H.family.replace(RegExp(" *"+u),"")),B&&(/\bWOW64\b/i.test(t)||A&&/\w(?:86|32)$/.test(o.cpuClass||o.platform)&&!/\bWin64; x64\b/i.test(t))&&_.unshift("32-bit")):H&&/^OS X/.test(H.family)&&"Chrome"==B&&parseFloat(L)>=39&&(H.architecture=64),t||(t=null);var $={};return $.description=t,$.layout=F&&F[0],$.manufacturer=U,$.name=B,$.prerelease=M,$.product=z,$.ua=t,$.version=B&&L,$.os=H||{architecture:null,family:null,version:null,toString:function(){return"null"}},$.parse=e,$.toString=function(){return this.description||""},$.version&&_.unshift(L),$.name&&_.unshift(B),H&&B&&(H!=String(H).split(" ")[0]||H!=B.split(" ")[0]&&!z)&&_.push(z?"("+H+")":"on "+H),_.length&&($.description=_.join(" ")),$}();i.platform=k,void 0===(r=function(){return k}.call(t,n,t,e))||(e.exports=r)}.call(this)},362:(e,t,n)=>{"use strict";var r=n(6441);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2688:(e,t,n)=>{e.exports=n(362)()},6441:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4931:(e,t,n)=>{"use strict";var r=n(1664),o=n(3696);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nC;C++)T[C]=C+1;T[15]=0;var P=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,I=Object.prototype.hasOwnProperty,j={},N={};function R(e){return!!I.call(N,e)||!I.call(j,e)&&(P.test(e)?N[e]=!0:(j[e]=!0,!1))}function D(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){_[e]=new D(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];_[t]=new D(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){_[e]=new D(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){_[e]=new D(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){_[e]=new D(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){_[e]=new D(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){_[e]=new D(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){_[e]=new D(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){_[e]=new D(e,5,!1,e.toLowerCase(),null,!1)}));var M=/[\-:]([a-z])/g;function A(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(M,A);_[t]=new D(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(M,A);_[t]=new D(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(M,A);_[t]=new D(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){_[e]=new D(e,1,!1,e.toLowerCase(),null,!1)})),_.xlinkHref=new D("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){_[e]=new D(e,1,!1,e.toLowerCase(),null,!0)}));var L=/["'&<>]/;function F(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=L.exec(e);if(t){var n,r="",o=0;for(n=t.index;nt}return!1}(e,t,r,!1)?"":null!==r?(e=r.attributeName,3===(n=r.type)||4===n&&!0===t?e+'=""':(r.sanitizeURL&&(t=""+t),e+'="'+F(t)+'"')):R(e)?e+'="'+F(t)+'"':""}var z="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},U=null,H=null,V=null,W=!1,$=!1,q=null,K=0;function G(){if(null===U)throw Error(i(321));return U}function X(){if(0K))throw Error(i(301));if(e===U)if($=!0,e={action:n,next:null},null===q&&(q=new Map),void 0===(n=q.get(t)))q.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function te(){}var ne=0,re={readContext:function(e){var t=ne;return O(e,t),e[t]},useContext:function(e){G();var t=ne;return O(e,t),e[t]},useMemo:function(e,t){if(U=G(),t=void 0===t?null:t,null!==(V=Y())){var n=V.memoizedState;if(null!==n&&null!==t){e:{var r=n[1];if(null===r)r=!1;else{for(var o=0;o=a))throw Error(i(304));var u=new Uint16Array(a);for(u.set(r),(T=u)[0]=n+1,r=n;r=u.children.length){var l=u.footer;if(""!==l&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===u.type)this.currentSelectValue=null;else if(null!=u.type&&null!=u.type.type&&u.type.type.$$typeof===f)this.popProvider(u.type);else if(u.type===v){this.suspenseDepth--;var c=r.pop();if(o){o=!1;var s=u.fallbackFrame;if(!s)throw Error(i(303));this.stack.push(s),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=c}r[this.suspenseDepth]+=l}else{var d=u.children[u.childIndex++],p="";try{p+=this.render(d,u.context,u.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw Error(i(294));throw e}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=p}}return r[0]}finally{pe.current=n,ne=t}},t.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?F(n):this.previousWasTextNode?"\x3c!-- --\x3e"+F(n):(this.previousWasTextNode=!0,F(n));if(e=(t=ke(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!o.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===u)throw Error(i(257));throw Error(i(258,n.toString()))}return e=de(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var a=e.type;if("string"==typeof a)return this.renderDOM(e,t,n);switch(a){case c:case p:case s:case m:case l:return e=de(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case v:throw Error(i(294))}if("object"==typeof a&&null!==a)switch(a.$$typeof){case h:U={};var b=a.render(e.props,e.ref);return b=Q(a.render,e.props,b,e.ref),b=de(b),this.stack.push({type:null,domNamespace:n,children:b,childIndex:0,context:t,footer:""}),"";case g:return e=[o.createElement(a.type,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case f:return n={type:e,domNamespace:n,children:a=de(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case d:a=e.type,b=e.props;var x=this.threadID;return O(a,x),a=de(b.children(a[x])),this.stack.push({type:e,domNamespace:n,children:a,childIndex:0,context:t,footer:""}),"";case w:throw Error(i(338));case y:switch(function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(a=e.type),a._status){case 1:return e=[o.createElement(a._result,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw a._result;default:throw Error(i(295))}case k:throw Error(i(343))}throw Error(i(130,null==a?a:typeof a,""))},t.renderDOM=function(e,t,n){var a=e.type.toLowerCase();if(n===oe&&ie(a),!me.hasOwnProperty(a)){if(!ve.test(a))throw Error(i(65,a));me[a]=!0}var u=e.props;if("input"===a)u=r({type:void 0},u,{defaultChecked:void 0,defaultValue:void 0,value:null!=u.value?u.value:u.defaultValue,checked:null!=u.checked?u.checked:u.defaultChecked});else if("textarea"===a){var l=u.value;if(null==l){l=u.defaultValue;var c=u.children;if(null!=c){if(null!=l)throw Error(i(92));if(Array.isArray(c)){if(!(1>=c.length))throw Error(i(93));c=c[0]}l=""+c}null==l&&(l="")}u=r({},u,{value:void 0,children:""+l})}else if("select"===a)this.currentSelectValue=null!=u.value?u.value:u.defaultValue,u=r({},u,{value:void 0});else if("option"===a){c=this.currentSelectValue;var s=function(e){if(null==e)return e;var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(u.children);if(null!=c){var f=null!=u.value?u.value+"":s;if(l=!1,Array.isArray(c)){for(var d=0;d":(w+=">",l="");e:{if(null!=(c=u.dangerouslySetInnerHTML)){if(null!=c.__html){c=c.__html;break e}}else if("string"==typeof(c=u.children)||"number"==typeof c){c=F(c);break e}c=null}return null!=c?(u=[],he.hasOwnProperty(a)&&"\n"===c.charAt(0)&&(w+="\n"),w+=c):u=de(u.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?ie(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:u,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,w},e}(),Ee={renderToString:function(e){e=new xe(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new xe(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(i(207))},renderToStaticNodeStream:function(){throw Error(i(208))},version:"16.14.0"};e.exports=Ee.default||Ee},6067:(e,t,n)=>{"use strict";var r=n(3696),o=n(1664),i=n(1434);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n
, or turn it into a ")+"drag source or a drop target itself.")}}(o);var i=n?function(t){return e(t,n)}:e;return function(e,t){var n=e.ref;return Hi("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,se.cloneElement)(e,{ref:function(e){la(n,e),la(t,e)}}):(0,se.cloneElement)(e,{ref:t})}(o,i)}}function ua(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=aa(r);t[n]=function(){return o}}})),t}function la(e,t){"function"==typeof e?e(t):e.current=t}function ca(e){return ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ca(e)}function sa(e){return null!==e&&"object"===ca(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function fa(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter((function(e){return e!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}],n&&Va(t.prototype,n),r&&Va(t,r),e}(),qa=Ha((function(){return/firefox/i.test(navigator.userAgent)})),Ka=Ha((function(){return Boolean(window.safari)}));function Ga(e,t){for(var n=0;ne))return n[u];c=u-1}}var f=e-t[a=Math.max(0,c)],d=f*f;return n[a]+r[a]*f+o[a]*d+i[a]*f*d}}],n&&Ga(t.prototype,n),r&&Ga(t,r),e}();function Qa(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function Ja(e){return{x:e.clientX,y:e.clientY}}function Za(e,t,n,r,o){var i,a,u="IMG"===(i=t).nodeName&&(qa()||!(null!==(a=document.documentElement)&&void 0!==a&&a.contains(i))),l=Qa(u?e:t),c={x:n.x-l.x,y:n.y-l.y},s=e.offsetWidth,f=e.offsetHeight,d=r.anchorX,p=r.anchorY,h=function(e,t,n,r){var o=e?t.width:n,i=e?t.height:r;return Ka()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(u,t,s,f),v=h.dragPreviewWidth,m=h.dragPreviewHeight,g=o.offsetX,y=o.offsetY,b=0===y||y;return{x:0===g||g?g:new Ya([0,.5,1],[c.x,c.x/s*v,c.x+v-s]).interpolate(d),y:b?y:function(){var e=new Ya([0,.5,1],[c.y,c.y/f*m,c.y+m-f]).interpolate(p);return Ka()&&u&&(e+=(window.devicePixelRatio-1)*m),e}()}}var eu,tu="__NATIVE_FILE__",nu="__NATIVE_URL__",ru="__NATIVE_TEXT__",ou="__NATIVE_HTML__";function iu(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=r?r:n}function au(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uu=(au(eu={},tu,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),au(eu,ou,{exposeProperties:{html:function(e,t){return iu(e,t,"")}},matchesTypes:["Html","text/html"]}),au(eu,nu,{exposeProperties:{urls:function(e,t){return iu(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),au(eu,ru,{exposeProperties:{text:function(e,t){return iu(e,t,"")}},matchesTypes:["Text","text/plain"]}),eu);function lu(e,t){for(var n=0;n-1}))}))[0]||null}function du(e,t){for(var n=0;n0&&o.actions.hover(t,{clientOffset:Ja(e)}),t.some((function(e){return o.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=o.getCurrentDropEffect())))})),yu(this,"handleTopDragOverCapture",(function(){o.dragOverTargetIds=[]})),yu(this,"handleTopDragOver",(function(e){var t=o.dragOverTargetIds;if(o.dragOverTargetIds=[],!o.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));o.altKeyPressed=e.altKey,o.actions.hover(t||[],{clientOffset:Ja(e)}),(t||[]).some((function(e){return o.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=o.getCurrentDropEffect())):o.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))})),yu(this,"handleTopDragLeaveCapture",(function(e){o.isDraggingNativeItem()&&e.preventDefault(),o.enterLeaveCounter.leave(e.target)&&o.isDraggingNativeItem()&&setTimeout((function(){return o.endDragNativeItem()}),0)})),yu(this,"handleTopDropCapture",(function(e){var t;(o.dropTargetIds=[],o.isDraggingNativeItem())?(e.preventDefault(),null===(t=o.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):fu(e.dataTransfer)&&e.preventDefault();o.enterLeaveCounter.reset()})),yu(this,"handleTopDrop",(function(e){var t=o.dropTargetIds;o.dropTargetIds=[],o.actions.hover(t,{clientOffset:Ja(e)}),o.actions.drop({dropEffect:o.getCurrentDropEffect()}),o.isDraggingNativeItem()?o.endDragNativeItem():o.monitor.isDragging()&&o.actions.endDrag()})),yu(this,"handleSelectStart",(function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))})),this.options=new hu(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new $a(this.isNodeInDocument)}var t,n,o;return t=e,(n=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:"teardown",value:function(){var e,t=this.rootElement;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var o=function(t){return r.handleDragStart(t,e)},i=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},i=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return mu({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return mu({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(r).some((function(t){return r[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new su(uu[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){var e;return null===(e=t.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}}])&&gu(t.prototype,n),o&&gu(t,o),e}(),ku=function(e,t,n){return new wu(e,t,n)};!function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(bu||(bu={}));var xu=1,Eu=0;function Su(e){return void 0===e.button||e.button===Eu}function Ou(e){return!!e.targetTouches}function Tu(e,t){return Ou(e)?function(e,t){return 1===e.targetTouches.length?Tu(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?Tu(e.touches[0]):void 0}(e,t):{x:e.clientX,y:e.clientY}}var Cu=function(){var e=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return e=!0,!0}}))}catch(e){}return e}();function Pu(e,t){for(var n=0;n=o[a].start)&&(null==o[a].end||i<=o[a].end))return!0;return!1}(o._mouseClientOffset.x||0,o._mouseClientOffset.y||0,c.x,c.y,o.options.scrollAngleRanges))o._isScrolling=!0;else if(!o.monitor.isDragging()&&o._mouseClientOffset.hasOwnProperty("x")&&a&&(t=o._mouseClientOffset.x||0,n=o._mouseClientOffset.y||0,r=c.x,i=c.y,Math.sqrt(Math.pow(Math.abs(r-t),2)+Math.pow(Math.abs(i-n),2))>(o.options.touchSlop?o.options.touchSlop:0))&&(o.moveStartSourceIds=void 0,o.actions.beginDrag(a,{clientOffset:o._mouseClientOffset,getSourceClientOffset:o.getSourceClientOffset,publishSource:!1})),o.monitor.isDragging()){var s=o.sourceNodes.get(o.monitor.getSourceId());o.installSourceNodeRemovalObserver(s),o.actions.publishDragSource(),e.cancelable&&e.preventDefault();var f=(u||[]).map((function(e){return o.targetNodes.get(e)})).filter((function(e){return!!e})),d=o.options.getDropTargetElementsAtPoint?o.options.getDropTargetElementsAtPoint(c.x,c.y,f):o.document.elementsFromPoint(c.x,c.y),p=[];for(var h in d)if(d.hasOwnProperty(h)){var v=d[h];for(p.push(v);v;)(v=v.parentElement)&&-1===p.indexOf(v)&&p.push(v)}var m=p.filter((function(e){return f.indexOf(e)>-1})).map((function(e){return o._getDropTargetId(e)})).filter((function(e){return!!e})).filter((function(e,t,n){return n.indexOf(e)===t}));if(l)for(var g in o.targetNodes){var y=o.targetNodes.get(g);if(s&&y&&y.contains(s)&&-1===m.indexOf(g)){m.unshift(g);break}}m.reverse(),o.actions.hover(m,{clientOffset:c})}}})),Du(this,"_getDropTargetId",(function(e){for(var t=o.targetNodes.keys(),n=t.next();!1===n.done;){var r=n.value;if(e===o.targetNodes.get(r))return r;n=t.next()}})),Du(this,"handleTopMoveEndCapture",(function(e){o._isScrolling=!1,o.lastTargetTouchFallback=void 0,function(e){return void 0===e.buttons||!(e.buttons&xu)}(e)&&(o.monitor.isDragging()&&!o.monitor.didDrop()?(e.cancelable&&e.preventDefault(),o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.drop(),o.actions.endDrag()):o.moveStartSourceIds=void 0)})),Du(this,"handleCancelOnEscape",(function(e){"Escape"===e.key&&o.monitor.isDragging()&&(o._mouseClientOffset={},o.uninstallSourceNodeRemovalObserver(),o.actions.endDrag())})),this.options=new Nu(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(bu.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(bu.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(bu.keyboard)}var t,n,r;return t=e,(n=[{key:"profile",value:function(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.length)||0}}},{key:"document",get:function(){return this.options.document}},{key:"setup",value:function(){var t=this.options.rootElement;t&&(Hi(!e.isSetUp,"Cannot have two Touch backends at the same time."),e.isSetUp=!0,this.addEventListener(t,"start",this.getTopMoveStartHandler()),this.addEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(t,"move",this.handleTopMove),this.addEventListener(t,"move",this.handleTopMoveCapture,!0),this.addEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(t,"keydown",this.handleCancelOnEscape,!0))}},{key:"teardown",value:function(){var t=this.options.rootElement;t&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(t,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(t,"start",this.handleTopMoveStart),this.removeEventListener(t,"move",this.handleTopMoveCapture,!0),this.removeEventListener(t,"move",this.handleTopMove),this.removeEventListener(t,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(t,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(t,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}},{key:"addEventListener",value:function(e,t,n,r){var o=Cu?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){var i=_u[r][t];i&&e.addEventListener(i,n,o)}))}},{key:"removeEventListener",value:function(e,t,n,r){var o=Cu?{capture:r,passive:!1}:r;this.listenerTypes.forEach((function(r){var i=_u[r][t];i&&e.removeEventListener(i,n,o)}))}},{key:"connectDragSource",value:function(e,t){var n=this,r=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,t),this.addEventListener(t,"start",r),function(){n.sourceNodes.delete(e),n.removeEventListener(t,"start",r)}}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=this.options.rootElement;if(!this.document||!r)return function(){};var o=function(o){if(n.document&&r&&n.monitor.isDragging()){var i;switch(o.type){case _u.mouse.move:i={x:o.clientX,y:o.clientY};break;case _u.touch.move:i={x:o.touches[0].clientX,y:o.touches[0].clientY}}var a=null!=i?n.document.elementFromPoint(i.x,i.y):void 0,u=a&&t.contains(a);return a===t||u?n.handleMove(o,e):void 0}};return this.addEventListener(this.document.body,"move",o),this.targetNodes.set(e,t),function(){n.document&&(n.targetNodes.delete(e),n.removeEventListener(n.document.body,"move",o))}}},{key:"getTopMoveStartHandler",value:function(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}},{key:"installSourceNodeRemovalObserver",value:function(e){var t=this;this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver((function(){e&&!e.parentElement&&(t.resurrectSourceNode(),t.uninstallSourceNodeRemovalObserver())})),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}},{key:"resurrectSourceNode",value:function(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}},{key:"uninstallSourceNodeRemovalObserver",value:function(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}}])&&Ru(t.prototype,n),r&&Ru(t,r),e}();Du(Mu,"isSetUp",void 0);var Au=we()?function(e){return new Mu(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}:ku,Lu=Au===ku;n(690);const Fu="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3e%3cstyle%3e.st0%7bfill:%23666%7d%3c/style%3e%3cpath class='st0' d='M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM224 416H64V160h160v256zm224 0H288V160h160v256z'/%3e%3c/svg%3e";const Bu=function(e){var t=e.icon,n=e.label,r=e.isActive,o=e.onClick;return n=n||"",se.createElement("button",{type:"button",title:n,"aria-label":n,className:"mt-be-block-toolbar-button ".concat(r?"active":""),onClick:o},se.createElement("img",{src:t}))};var zu="mt-be-block-config-panel";const Uu=function(e){var t=zu;return e.className&&(t+=" ".concat(e.className)),se.createElement(Un,{timeout:100,in:e.in,unmountOnExit:!0,classNames:zu},se.createElement("div",{id:e.id||"",className:t},e.children))};function Hu(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(e){return void n(e)}u.done?t(l):Promise.resolve(l).then(r,o)}function Vu(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Hu(i,r,o,a,u,"next",e)}function u(e){Hu(i,r,o,a,u,"throw",e)}a(void 0)}))}}function Wu(){return Wu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Qu(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Wu.apply(null,arguments)}function $u(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0;l--)i.removeBlock(t,t.blocks[t.blocks.length-1]);i.editManager.endGrouping(),c(!1)}}),[]),d=t.getColumnLayout();return se.createElement(se.Fragment,null,se.createElement(br,{block:t,keys:["className"]}),se.createElement("div",{className:"mt-be-columns",style:{display:"flex"}},t.blocks.map((function(e){return e.editor({focus:n,focusBlock:r,canRemove:o})}))),a.length>1&&n&&o&&se.createElement(cr,null,se.createElement(Bu,{icon:Fu,label:ue("Edit"),onClick:s})),se.createElement(Uu,{in:n&&l},se.createElement("ul",{style:{display:"flex",listStyle:"none"}},a.map((function(e){var t=e.toString();return se.createElement("li",{key:t},se.createElement("label",{onClick:f},se.createElement("input",{type:"radio",value:t,defaultChecked:d===t}),ue("{{columns}} columns",{columns:t})))})))))},ol=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ku(e,t)}(i,e);var t,n,r,o=Gu(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Ju(Xu(t=o.call(this)),"blocks",void 0),t.blocks=[t.newColumn(),t.newColumn()],e&&Object.assign(Xu(t),e),t}return qu(i,null,[{key:"label",get:function(){return ue("Columns")}}]),qu(i,[{key:"newColumn",value:function(){return new Gl({showShortcuts:!1})}},{key:"getColumnLayout",value:function(){return"".concat(this.blocks.length)}},{key:"childBlocks",value:function(){return this.blocks}},{key:"editor",value:function(e){var t=e.focus,n=e.focusBlock,r=e.canRemove;return se.createElement(rl,{key:this.id,block:this,focus:t,focusBlock:n,canRemove:r})}},{key:"html",value:function(){return'
').concat(this.blocks.map((function(e){return e.htmlString()})).join(""),"
")}},{key:"serialize",value:(r=Vu(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.editor.serializeMeta(this,t.external),e.next=3,Promise.all(this.blocks.map((function(e){return e.serialize(t)})));case 3:return r=e.sent,e.abrupt("return",'\x3c!-- mt-beb t="'.concat(this.constructor.typeId,'"').concat(n?" m='".concat(Wt(n),"'"):"",' --\x3e
').concat(r.join(""),"
\x3c!-- /mt-beb --\x3e"));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})}],[{key:"new",value:(n=Vu(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wu(Qu(i),"new",this).call(this,t);case 2:return n=e.sent,r=nl(t.editor),o=r.defaultColumns,n.blocks=Array(o).fill(null).map((function(){return n.newColumn()})),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"newFromHtml",value:(t=Vu(regeneratorRuntime.mark((function e(t){var n,r,o,a,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.node,r=t.factory,o=t.meta,a=t.context,e.next=3,rc(n.innerHTML,r,a,nc);case 3:return(u=e.sent).forEach((function(e){return e.showShortcuts=!1})),e.abrupt("return",new i(Object.assign({blocks:u},o)));case 6:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),i}(mn);Ju(ol,"typeId","core-columns"),Ju(ol,"selectable",!0),Ju(ol,"icon",Fu);const il=ol;const al=(0,se.memo)((function(){var e=yn(),t=e.editor,n=e.getFocusedIds,r=wn().removeBlock;return se.createElement("button",{type:"button",className:"mt-be-btn-remove",onClick:function(e){e.stopPropagation();var o=ac(t,n());t.editManager.beginGrouping(),o.forEach((function(e){return r(e)})),t.editManager.endGrouping()}})}));function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);nr&&a>i)){if(nr;c--)p(c,c-1);e.index=r}}}}}}),[p,u]),[p,u]),2)[1];(0,se.useEffect)((function(){return function(){n.isNewlyAdded=!1}}),[]);var C=cl(Ua((0,se.useMemo)((function(){return{type:s?s.id:"block",item:{type:s?s.id:"block",id:t,index:u},collect:function(e){return{isDragging:e.isDragging()}}}}),[u]),[u]),3),P=C[0].isDragging,I=C[1],j=C[2],N={};N.opacity=P?Lu?0:.5:1,j(T(O));var R=0!==ac(y,g).length,D=(0,se.createRef)(),_=y.editor({focus:r,focusBlock:i,focusDescendant:R,canRemove:!0===l,parentBlock:s,clickBlockTargetRef:D}),M={block:y,index:b,rendered:!1},A=!!(r||i||R||y instanceof Gl||y instanceof il),L=(0,se.useMemo)((function(){return[function(e){if(!Xt(e.nativeEvent)){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation();var t=v();t.includes(y.id)||(e.preventDefault(),D.current?D.current.click():a||(0!==t.length&&e.shiftKey?m(lc(h,[].concat(ll(t),[y.id])).map((function(e){return e.id}))):m([y.id])))}},function(e){var t=v();h.commandManager.execute({command:"core-copyBlock",blockIds:0===t.length?[y.id]:t,editorContext:d,blocksContext:f,event:e.nativeEvent})},function(e){var t=v();h.commandManager.execute({command:"core-pasteBlock",blockIds:0===t.length?[y.id]:t,editorContext:d,blocksContext:f,event:e.nativeEvent})},function(){var e=v();if(e.length>=2){h.editManager.beginGrouping();for(var t=u,n=u+e.length;t=2){h.editManager.beginGrouping();for(var t=u+e.length-1;t>=u;t--)p(t+1,t);h.editManager.endGrouping()}else p(u,u+1,!0)}]}),[u]),F=cl(L,5),B=F[0],z=F[1],U=F[2],H=F[3],V=F[4];return(0,se.useEffect)((function(){if(w)return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)};function e(e){var t=e.key;if(e.ctrlKey||e.metaKey||e.altKey||e.shiftKey||"Delete"===t||"Backspace"===t){var n=v();0!==n.length&&(h.editorElement.querySelector('[data-mt-block-editor-keep-focus="1"]')||(n.length>=2&&("Delete"===t||"Backspace"===t)?(e.preventDefault(),h.commandManager.execute({command:"core-deleteBlock",blockIds:n,editorContext:d,blocksContext:f,event:e})):h.commandManager.dispatchKeydownEvent({event:e,blockIds:n,editorContext:d,blocksContext:f})))}}}),[w]),se.createElement("div",{key:y.id,"data-mt-block-editor-block-id":y.id,"data-mt-block-editor-skip-focus-default":o||void 0,onClick:B,onCopy:z,onPaste:U,className:"mt-be-block-wrapper ".concat(w?"mt-be-focus-leader":""," ").concat(g.length>=2&&g.includes(y.id)?"mt-be-focus":""),style:N,ref:O},c&&!Ee()&&se.createElement(se.Fragment,null,se.createElement("div",{className:"mt-be-btn-move-wrapper"},se.createElement(Yn,{in:x,block:y}),se.createElement("button",{type:"button",className:"mt-be-btn-up",onClick:H}),se.createElement("span",{className:"mt-be-btn-move",onClick:S,ref:I}),se.createElement("button",{type:"button",className:"mt-be-btn-down",onClick:V})),se.createElement("div",{className:"mt-be-btn-add-wrapper"},se.createElement("div",{style:{position:"relative"}},se.createElement(ir,{index:b}))),se.createElement("div",{className:"mt-be-btn-remove-wrapper"},se.createElement(al,null))),se.createElement("div",{className:"mt-be-block"},!r&&!(y instanceof il)&&se.createElement("div",{className:"mt-be-content-label"},y.contentLabel()),A&&se.createElement(kn.Provider,{value:M},_,r&&c&&Ee()&&se.createElement(dl,null)),se.createElement(se.Fragment,null,se.createElement(Ui.div,null,se.createElement("div",ul({className:h.opts.rootClassName||"",style:{overflow:"auto"}},h.opts.rootAttributes),se.createElement(pl,{editor:h}),!A&&_)))))};n(8428);function vl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ml(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n=1&&rn(t[0],e))return t.length>=2?[t[0]]:t;if(t.length>=2){var r=bl(t,2),o=r[0],i=r[1];if(e.width===o.width&&o.width===i.width&&"number"==typeof e.height&&"number"==typeof o.height&&"number"==typeof i.height&&e.height-o.height==o.height-i.height||e.height===o.height&&o.height===i.height&&"number"==typeof e.width&&"number"==typeof o.width&&"number"==typeof i.width&&e.width-o.width==o.width-i.width)return n.iframePreviewSize&&rn(n.iframePreviewSize,t[1])?t:(n.setIframePreviewSize(t[1]),yl(t))}return n.setIframePreviewSize(e),0===t.length?[e]:[e,t[0]]}))}),[]),k=n.getIframePreviewSize(g),x=(0,se.useCallback)((function(e,t,r){if(!a||!1!==a(t))if(t)i&&i(t);else{r.preserveBlockData||(e=e.replace(//g,""));var o=n.compiledHtml;n.compiledHtml=e,n.removeIntermediateProduct=!!r.removeIntermediateProduct,r.addEditHistory&&d.editManager.add({block:n,data:{last:o,cur:e},handlers:xl}),d.emit("setCompiledHtmlIframePreview",{editor:d,block:n}),i&&i(null),y((function(e){return"number"==typeof e?e+1:1}))}}),[]);"string"!=typeof r&&null===m&&(o="",r.then(y));var E={editor:d,scheme:c,sandbox:f,html:g,head:'\n \n \n \n \n ${editor.stylesheets\n .map((s) => {\n if (s.type === StylesheetType.css) {\n return ``;\n } else {\n return ``;\n }\n })\n .join(\"\")}\n ${header || \"\"}\n `,\n };\n editor.emit(\"beforeRenderIframePreview\", beforeRenderIframePreviewOpt);\n const htmlText = beforeRenderIframePreviewOpt.html;\n const head = beforeRenderIframePreviewOpt.head;\n\n const [src, setSrc] = useState(\"\");\n useEffect(() => {\n if (!header && !htmlText) {\n if (src !== \"\") {\n setSrc(\"\");\n }\n return;\n }\n\n const rootAttributesObj = editor.opts.rootAttributes as Record<\n string,\n string\n >;\n const rootAttributes = Object.keys(rootAttributesObj)\n .map((k) => {\n const map: Record = { \"&\": \"&\", '\"': \""\" };\n const v = rootAttributesObj[k].replace(/[&\"]/g, (m) => map[m]);\n return `${k}=\"${v}\"`;\n })\n .join(\" \");\n\n let srcdoc = `\n \n ${head}${htmlText}`;\n\n if (beforeRenderIframePreviewOpt.scheme === \"blob\") {\n setSrc(URL.createObjectURL(new Blob([srcdoc], { type: \"text/html\" })));\n } else if (beforeRenderIframePreviewOpt.scheme === \"srcdoc\") {\n setSrc(srcdoc);\n } else {\n // data or data-wrap\n if (beforeRenderIframePreviewOpt.scheme === \"data-wrap\") {\n const iframe = document.createElement(\"iframe\");\n iframe.setAttribute(\"frameborder\", \"0\");\n iframe.setAttribute(\"allowfullscreen\", \"true\");\n iframe.srcdoc = srcdoc;\n srcdoc = `\n \n \n \n \n \n \n \n \n ${iframe.outerHTML}\n \n \n `;\n }\n\n const data = new TextEncoder().encode(srcdoc);\n const base64Srcdoc = btoa(String.fromCharCode(...data));\n setSrc(`data:text/html;base64,${base64Srcdoc}`);\n }\n }, [block.compiledHtml, header, htmlText]);\n\n useEffect(() => {\n const onMessage = (ev: MessageEvent): void => {\n const containerEl = containerElRef.current;\n\n if (\n !(\n containerEl &&\n ev.source ===\n (containerEl.firstChild as HTMLIFrameElement).contentWindow &&\n ev.data &&\n ev.data.blockId === block.id\n )\n ) {\n return;\n }\n\n switch (ev.data.method) {\n case \"MTBlockEditorInitSize\":\n if (!isDefaultSize(size)) {\n break;\n }\n\n setSize({ ...size, ...ev.data.arguments });\n break;\n case \"MTBlockEditorSetSize\":\n (Object.keys(size) as Array).forEach((k) => {\n const oldValue =\n typeof size[k] === \"number\"\n ? (size[k] as number)\n : parseFloat(size[k] as string);\n const newValue =\n typeof ev.data.arguments[k] === \"number\"\n ? (ev.data.arguments[k] as number)\n : parseFloat(ev.data.arguments[k] as string);\n if (\n oldValue &&\n newValue &&\n oldValue > newValue &&\n Math.abs(oldValue - newValue) < SHRINK_THRESHOLD\n ) {\n ev.data.arguments[k] = size[k];\n }\n });\n\n if (\n size.width !== ev.data.arguments.width ||\n size.height !== ev.data.arguments.height\n ) {\n setSize(ev.data.arguments);\n }\n break;\n case \"MTBlockEditorOnClick\":\n (\n containerEl.closest(\"[data-mt-block-editor-block-id]\") ||\n (containerEl.getRootNode() as ShadowRoot)?.host\n )?.dispatchEvent(\n new MouseEvent(\"click\", {\n bubbles: true,\n cancelable: true,\n ...ev.data.arguments,\n })\n );\n break;\n case \"MTBlockEditorOnKeydown\":\n window.dispatchEvent(new KeyboardEvent(\"keydown\", ev.data.arguments));\n break;\n case \"MTBlockEditorSetCompiledHtml\":\n setCompiledHtml(\n ev.data.html,\n ev.data.html == null ? new Error(ev.data.error || \"Error\") : null,\n ev.data.arguments as SetCompiledHtmlOptions\n );\n break;\n }\n };\n\n window.addEventListener(\"message\", onMessage, {\n capture: true,\n passive: true,\n });\n return () => {\n window.removeEventListener(\"message\", onMessage, {\n capture: true,\n });\n };\n }, [size]);\n\n return (\n
\n \n
\n );\n};\n\nexport default BlockIframePreview;\n","import { t } from \"../i18n\";\nimport React, {\n Fragment,\n useCallback,\n useEffect,\n useMemo,\n CSSProperties,\n} from \"react\";\nimport { render, unmountComponentAtNode } from \"react-dom\";\nimport {\n EditorContext,\n useEditorContext,\n BlocksContext,\n BlocksContextProps,\n} from \"../Context\";\nimport Block, {\n NewFromHtmlOptions,\n EditorOptions,\n SerializeOptions,\n CompileOptions,\n HasBlocks,\n} from \"../Block\";\nimport AddButton from \"../Component/AddButton\";\nimport BlockItem from \"../Component/BlockItem\";\nimport BlockIframePreview from \"../Component/BlockIframePreview\";\nimport BlockSetupCommon from \"../Component/BlockSetupCommon\";\nimport {\n parseContent,\n NO_BLOCK_TYPE_FALLBACK,\n preParseContent,\n escapeSingleQuoteAttribute,\n ParserContext,\n} from \"../util\";\n\ninterface EditorProps extends EditorOptions {\n block: Column;\n}\n\nconst COMPILE_TIMEOUT = 2000;\nconst SERIALIZATION_PARALLELISM = 4;\n\nconst STYLE_HIDDEN: CSSProperties = {\n position: \"absolute\",\n overflow: \"hidden\",\n height: \"0px\",\n border: \"none\",\n};\n\nconst Editor: React.FC = ({\n block,\n focus,\n focusBlock,\n focusDescendant,\n canRemove,\n}: EditorProps) => {\n if (\n (block.constructor as typeof Block).typeId !== \"core-column\" ||\n canRemove === undefined\n ) {\n canRemove = block.canRemoveBlock;\n }\n\n const { editor, setFocusedIds } = useEditorContext();\n\n const blocksContext = useMemo(\n () => ({\n panelBlockTypes: block.panelBlockTypes,\n shortcutBlockTypes: block.shortcutBlockTypes,\n addBlock: (b: Block, index: number | Block) => {\n if (index instanceof Block) {\n index = block.blocks.indexOf(index) + 1;\n }\n editor.addBlock(block, b, index);\n setFocusedIds([b.id]);\n },\n mergeBlock: (b: Block) => {\n const index = block.blocks.indexOf(b);\n if (editor.mergeBlock(block, b)) {\n setFocusedIds([block.blocks[index - 1].id]);\n }\n },\n removeBlock: (b: Block) => {\n const index = block.blocks.indexOf(b);\n editor.removeBlock(block, b);\n if (index > 0) {\n setFocusedIds([block.blocks[index - 1].id]);\n }\n },\n swapBlocks: (dragIndex: number, hoverIndex: number, scroll?: boolean) => {\n if (\n dragIndex === undefined ||\n hoverIndex === undefined ||\n !block.blocks[dragIndex] ||\n !block.blocks[hoverIndex]\n ) {\n return;\n }\n\n if (scroll) {\n const destEl = block.blocks[dragIndex].wrapperRef.current;\n if (!destEl) {\n return;\n }\n\n const rect = destEl.getBoundingClientRect();\n const scrollTop =\n window.pageYOffset || document.documentElement.scrollTop;\n const offsetTop = rect.height + 22;\n\n window.scrollTo({\n top: scrollTop + (dragIndex > hoverIndex ? -offsetTop : offsetTop),\n behavior: \"smooth\",\n });\n }\n\n editor.swapBlocks(block, dragIndex, hoverIndex);\n },\n }),\n []\n );\n\n const resetCompiledHtml = useCallback(() => {\n block.resetCompiledHtml();\n }, []);\n useEffect(() => {\n editor.on(\"change\", resetCompiledHtml);\n\n if (block._html !== \"\") {\n parseContent(\n preParseContent(block._html),\n editor.factory,\n new ParserContext()\n ).then((blocks) => {\n block._html = \"\";\n block.blocks = blocks;\n if (blocks[0]) {\n setFocusedIds([blocks[0].id]);\n }\n });\n }\n\n return () => {\n editor.off(\"change\", resetCompiledHtml);\n };\n }, []);\n\n useEffect(() => {\n if (focusDescendant) {\n resetCompiledHtml();\n return;\n }\n\n if (\n (block.constructor as typeof Block).shouldBeCompiled &&\n block.compiledHtml === undefined &&\n !focus &&\n !focusDescendant\n ) {\n block.compile({ editor });\n }\n }, [focus, focusDescendant]);\n\n const res = (\n \n \n {block.blocks.map((b, i) => {\n const focusFirstBlock = canRemove !== true && block.blocks.length === 1;\n const focusItem = (focus && focusFirstBlock) || undefined;\n return (\n \n );\n })}\n {canRemove && (\n
\n \n
\n )}\n
\n );\n\n if ((block.constructor as typeof Column).typeId === \"core-column\") {\n return (\n
\n {res}\n
\n );\n } else {\n return res;\n }\n};\n\nclass Column extends Block implements HasBlocks {\n public static typeId = \"core-column\";\n public static className = \"mt-be-column\";\n public static rootBlock: string | null = \"div\";\n public static selectable = false;\n public static showPreview = true;\n public static get label(): string {\n return t(\"Column\");\n }\n\n public _html = \"\";\n public previewHeader = \"\";\n public showShortcuts = true;\n public blocks: Block[] = [];\n public cancelOngoingCompilationHandlers: (() => void)[] = [];\n\n public canRemoveBlock = true;\n public panelBlockTypes: string[] | null = null;\n public shortcutBlockTypes: string[] | null = null;\n\n public constructor(init?: Partial) {\n super();\n if (init) {\n Object.assign(this, init);\n }\n }\n\n public childBlocks(): Block[] {\n return this.blocks;\n }\n\n public get rootBlock(): string | null {\n return (this.constructor as typeof Column).rootBlock;\n }\n\n public get showPreview(): boolean {\n return (this.constructor as typeof Column).showPreview;\n }\n\n public resetCompiledHtml(): void {\n this.compiledHtml = undefined;\n this.removeIntermediateProduct = false;\n\n this.cancelOngoingCompilationHandlers.map((h) => {\n h();\n });\n this.cancelOngoingCompilationHandlers = [];\n }\n\n public editor({\n focus,\n focusBlock,\n focusDescendant,\n canRemove,\n }: EditorOptions): JSX.Element {\n if (\n this.showPreview &&\n (this.constructor as typeof Column).typeId !== \"core-column\" &&\n ((this._html === \"\" &&\n this.blocks.length === 0 &&\n this.effectiveAddableBlockTypes().length === 0) ||\n (!focus && !focusDescendant && !focusBlock))\n ) {\n return (\n \n );\n }\n\n return (\n \n \n \n );\n }\n\n public isBlank(): boolean {\n return this.blocks.length === 0;\n }\n\n private async serializeChildBlocks(\n opts: SerializeOptions\n ): Promise {\n const serializeChildOpts: Readonly = {\n ...opts,\n removeChildIntermediateProduct:\n opts.removeChildIntermediateProduct || this.removeIntermediateProduct,\n };\n if (this.blocks.length <= SERIALIZATION_PARALLELISM) {\n return Promise.all(\n this.blocks.map((c) => c.serialize(serializeChildOpts))\n );\n }\n\n const res: string[] = [];\n const indexes = Object.keys(this.blocks).map((i) => Number(i));\n await Promise.all(\n [...Array(SERIALIZATION_PARALLELISM)].map(async () => {\n for (let i = indexes.shift(); i !== undefined; i = indexes.shift()) {\n res[i] = await this.blocks[i].serialize(serializeChildOpts);\n }\n })\n );\n return res;\n }\n\n public async serializedString(opts: SerializeOptions): Promise {\n const classNames = [\n (this.constructor as typeof Column).className,\n this.className,\n ].filter((c) => c);\n const serializedBlocks = await this.serializeChildBlocks(opts);\n\n return [\n this.rootBlock\n ? `<${this.rootBlock}${\n classNames.length\n ? ` class='${escapeSingleQuoteAttribute(classNames.join(\" \"))}'`\n : \"\"\n }>`\n : \"\",\n serializedBlocks.join(\"\"),\n this.rootBlock ? `` : \"\",\n ].join(\"\");\n }\n\n public async compile({ editor }: CompileOptions): Promise {\n let canceled = false;\n this.cancelOngoingCompilationHandlers.push(() => {\n canceled = true;\n });\n const onBeforeSetCompiledHtml = (): boolean => !canceled;\n\n const sourceHtml = await this.serializedString({ editor, external: false });\n return new Promise((resolve, reject) => {\n let timeoutId: ReturnType | null = null;\n\n const div = document.createElement(\"div\");\n Object.assign(div.style, STYLE_HIDDEN);\n document.body.appendChild(div);\n\n const onSetCompiledHtml = (error: Error | null): void => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n timeoutId = null;\n }\n\n unmountComponentAtNode(div);\n div.remove();\n if (error) {\n reject(error);\n } else {\n resolve();\n }\n };\n\n const editorContext = {\n editor,\n setFocusedIds: () => undefined,\n getFocusedIds: () => [],\n };\n\n render(\n \n \n ,\n div\n );\n\n const opts = editor.opts.block[\"core-column\"] || {};\n timeoutId = setTimeout(async () => {\n if (!canceled) {\n this.compiledHtml ||= sourceHtml;\n }\n onSetCompiledHtml(null);\n }, opts[\"compile-timeout\"] || COMPILE_TIMEOUT);\n });\n }\n\n public async serialize(opts: SerializeOptions): Promise {\n if (\n (this.constructor as typeof Block).shouldBeCompiled ||\n this.compiledHtml !== undefined\n ) {\n return super.serialize(opts);\n }\n\n const m = opts.editor.serializeMeta(this, opts.external);\n const typeId = (this.constructor as typeof Column).typeId;\n return [\n ``,\n await this.serializedString(opts),\n ``,\n ].join(\"\");\n }\n\n public static async newFromHtml({\n node,\n factory,\n meta,\n context,\n }: NewFromHtmlOptions): Promise {\n const html = node.hasAttribute(\"h\")\n ? preParseContent(node.getAttribute(\"h\") || \"\")\n : node.innerHTML;\n const blocks = await parseContent(\n html,\n factory,\n context,\n NO_BLOCK_TYPE_FALLBACK\n );\n const compiledHtml =\n (node.hasAttribute(\"h\") ? node.textContent : undefined) ?? undefined;\n\n return new this(\n Object.assign(\n { blocks, compiledHtml, _html: \"\" },\n meta as Partial\n )\n );\n }\n\n private effectiveAddableBlockTypes(): string[] {\n if (!this.canRemoveBlock) {\n return [];\n }\n return (this.panelBlockTypes || []).concat(this.shortcutBlockTypes || []);\n }\n}\n\nexport default Column;\n","import Editor from \"../Editor\";\nimport Block from \"../Block\";\nimport BlockFactory from \"../BlockFactory\";\nimport Text from \"../Block/Text\";\nimport Column from \"../Block/Column\";\nimport ParserContext from \"./ParserContext\";\n\nexport const preParseContent = (() => {\n const entityMap = {\n \"&\": \"&\",\n \"<\": \"<\",\n \">\": \">\",\n } as { [key: string]: string };\n const entityReverseMap = Object.fromEntries(\n Object.entries(entityMap).map(([k, v]) => [v, k])\n );\n const entityRegExp = new RegExp(`[${Object.keys(entityMap).join(\"\")}]`, \"g\");\n const entityReverseRegExp = new RegExp(\n `(?:${Object.keys(entityReverseMap).join(\"|\")})`,\n \"g\"\n );\n\n return (value: string): string => {\n return value\n .replace(entityRegExp, (match) => entityMap[match])\n .replace(/<!--\\s+(\\/?mt-beb.*?)-->/g, (all, tag: string) => {\n return `<${tag.replace(\n entityReverseRegExp,\n (match) => entityReverseMap[match]\n )}>`;\n });\n };\n})();\n\nexport function removeControlCharacters(str: string): string {\n return str.replace(\n // eslint-disable-next-line no-control-regex,no-misleading-character-class\n /&#(?:0*?(?:[0-8]|1[124-9]|2\\d|3[01])?|x0*?(?:[0-8bcefBCEF]|1[0-9a-fA-F])?);|[^\\x09\\x0A\\x0D\\x20-\\xFF\\x85\\xA0-\\uD7FF\\uE000-\\uFDCF\\uFDE0-\\uFFFD\\uD800-\\uDBFF\\uDC00-\\uDFFF]/gm,\n \"\"\n );\n}\n\nexport const NO_BLOCK_TYPE_FALLBACK = \"\";\n\nexport async function parseContent(\n value: string,\n factory: BlockFactory,\n context: ParserContext,\n fallbackBlockType: string | typeof NO_BLOCK_TYPE_FALLBACK = \"core-html\"\n): Promise {\n if (!value) {\n return [];\n }\n\n const domparser = new DOMParser();\n const doc = domparser.parseFromString(\n `${removeControlCharacters(value)}`,\n \"application/xml\"\n );\n\n if (!doc.children[0]) {\n return [];\n }\n\n let children = [...doc.children[0].children];\n if (children.length === 0) {\n if (fallbackBlockType !== NO_BLOCK_TYPE_FALLBACK) {\n const fallback = document.createElement(\"div\");\n fallback.setAttribute(\"t\", fallbackBlockType);\n fallback.innerHTML = value;\n children = [fallback];\n } else {\n return [];\n }\n }\n\n // TODO: verify\n const blocks = [];\n for (let i = 0; i < children.length; i++) {\n const node = children[i];\n const typeId = node.getAttribute(\"t\") || \"core-text\";\n\n const metaRawValue = node.getAttribute(\"m\") || \"{}\";\n const metaArray = (metaRawValue.match(/\\w+|,|.+/g) || [])\n .filter((str) => str !== \",\")\n .map((str) =>\n /^[^{]/.test(str) ? context.get(str) || {} : JSON.parse(str)\n );\n const meta =\n metaArray.length === 1\n ? metaArray[0]\n : Object.assign.apply(null, [{}, ...metaArray]);\n\n if (typeId === \"core-context\") {\n for (const k in meta) {\n context.set(k, meta[k]);\n }\n continue;\n }\n\n let html = node.getAttribute(\"h\") || \"\";\n if (!html && node.textContent) {\n let c = node.textContent;\n if (meta.className) {\n c = c.replace(\n /^(<[^>]+)( class=\")([^\"]+)\"/,\n (m, tag, prefix, classNames) => {\n const filtered = classNames\n .split(/\\s+/)\n .filter((c: string) => c !== meta.className)\n .join(\" \");\n\n if (filtered) {\n return `${tag}${prefix}${filtered}\"`;\n } else {\n return tag;\n }\n }\n );\n }\n html = c;\n }\n\n const param = {\n html,\n node,\n factory,\n meta,\n context,\n };\n\n const t =\n factory.types().find((t: typeof Block) => t.typeId === typeId) || Column;\n const block = await t\n .newFromHtml(param)\n .catch(() => Text.newFromHtml(param));\n blocks.push(block);\n }\n\n return blocks;\n}\n\nconst emptyBlocks: Block[] = [];\nexport function findDescendantBlocks(\n ancestor: Block | Editor,\n ids: Readonly\n): Readonly {\n if (ids.length === 0) {\n return emptyBlocks;\n }\n\n const childBlocks =\n ancestor instanceof Editor ? ancestor.blocks : ancestor.childBlocks();\n if (childBlocks.length === 0) {\n return emptyBlocks;\n }\n\n return findDescendantBlocksInternal([...ids], childBlocks);\n}\n\nfunction findDescendantBlocksInternal(\n ids: string[],\n childBlocks: Readonly\n): Readonly {\n const result: Block[] = [];\n for (let i = 0, len = childBlocks.length; i < len; i++) {\n const b = childBlocks[i];\n const index = ids.indexOf(b.id);\n if (index !== -1) {\n result.push(b);\n ids.splice(index, 1);\n if (ids.length === 0) {\n return result;\n }\n }\n\n result.push(...findDescendantBlocksInternal(ids, b.childBlocks()));\n if (ids.length === 0) {\n return result;\n }\n }\n\n return result;\n}\n\ninterface GetBlocksByRangeState {\n ids: Readonly>;\n rootBlocks: Readonly;\n foundCount: number;\n startBlocks?: Readonly;\n endBlocks?: Readonly;\n result?: Readonly;\n}\nexport function getBlocksByRange(\n ancestor: Block | Editor,\n ids: Readonly\n): Readonly {\n const childBlocks =\n ancestor instanceof Editor ? ancestor.blocks : ancestor.childBlocks();\n const state: GetBlocksByRangeState = {\n ids: new Set(ids),\n rootBlocks: childBlocks,\n foundCount: 0,\n };\n getBlocksByRangeInternal(childBlocks, state);\n return state.result || emptyBlocks;\n}\n\nfunction getBlocksByRangeInternal(\n childBlocks: Readonly,\n state: GetBlocksByRangeState,\n parents: Readonly = []\n): Readonly | undefined {\n if (state.result && state.foundCount === state.ids.size) {\n return;\n }\n childBlocks.forEach((b) => {\n const currentBlocks = [...parents, b];\n\n getBlocksByRangeInternal(b.childBlocks(), state, currentBlocks);\n if (state.result && state.foundCount === state.ids.size) {\n return;\n }\n if (state.ids.has(b.id)) {\n state.foundCount++;\n\n if (state.ids.size === 1) {\n state.result = [b];\n } else if (state.startBlocks) {\n let range: {\n blocks: Readonly;\n start: string;\n end: string;\n };\n findRange: for (let i = state.startBlocks.length - 2; i >= 0; i--) {\n for (let j = currentBlocks.length - 2; j >= 0; j--) {\n if (state.startBlocks[i] === currentBlocks[j]) {\n range = {\n blocks: state.startBlocks[i].childBlocks(),\n start: state.startBlocks[i + 1].id,\n end: currentBlocks[j + 1].id,\n };\n break findRange;\n }\n }\n }\n\n range ||= {\n blocks: state.rootBlocks,\n start: state.startBlocks[0].id,\n end: currentBlocks[0].id,\n };\n\n const blockIds = range.blocks.map((b) => b.id);\n state.result = range.blocks.slice(\n blockIds.indexOf(range.start),\n blockIds.indexOf(range.end) + 1\n );\n } else {\n state.startBlocks = currentBlocks;\n }\n }\n });\n}\n","import platform from \"platform\";\n\nconst labels = {\n mac: {\n cmd: \"⌘\",\n alt: \"⌥\",\n ctrl: \"⌃\",\n shift: \"⇧\",\n },\n other: {\n cmd: \"Ctrl+\",\n alt: \"Alt+\",\n ctrl: \"Ctrl+\",\n shift: \"Shift+\",\n },\n};\n\nlet isMac = false;\nlet labelMap = labels.other;\n\nexport function setPlatform(_platform: typeof platform): void {\n isMac = [\"OS X\", \"iOS\"].includes(_platform.os?.family || \"\");\n labelMap = isMac ? labels.mac : labels.other;\n}\nsetPlatform(platform);\n\nexport function toKeyboardShortcutKey(ev: KeyboardEvent): string {\n return `${ev.ctrlKey && isMac ? \"ctrl+\" : \"\"}${ev.altKey ? \"alt+\" : \"\"}${\n ev.shiftKey ? \"shift+\" : \"\"\n }${ev.metaKey || (ev.ctrlKey && !isMac) ? \"cmd+\" : \"\"}${ev.key}`;\n}\n\nexport function toKeyboardShortcutLabel(key: string): string {\n return key.replace(\n /(ctrl|cmd|alt|shift)\\+/g,\n (all, key: keyof typeof labelMap) => {\n return labelMap[key] || key;\n }\n );\n}\n","class ParserContext extends Map {}\n\nexport default ParserContext;\n","export var INIT_COORDS = 'dnd-core/INIT_COORDS';\nexport var BEGIN_DRAG = 'dnd-core/BEGIN_DRAG';\nexport var PUBLISH_DRAG_SOURCE = 'dnd-core/PUBLISH_DRAG_SOURCE';\nexport var HOVER = 'dnd-core/HOVER';\nexport var DROP = 'dnd-core/DROP';\nexport var END_DRAG = 'dnd-core/END_DRAG';","import { INIT_COORDS } from '../types';\nexport function setClientOffset(clientOffset, sourceClientOffset) {\n return {\n type: INIT_COORDS,\n payload: {\n sourceClientOffset: sourceClientOffset || null,\n clientOffset: clientOffset || null\n }\n };\n}","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n// cheap lodash replacements\n\n/**\n * drop-in replacement for _.get\n * @param obj\n * @param path\n * @param defaultValue\n */\nexport function get(obj, path, defaultValue) {\n return path.split('.').reduce(function (a, c) {\n return a && a[c] ? a[c] : defaultValue || null;\n }, obj);\n}\n/**\n * drop-in replacement for _.without\n */\n\nexport function without(items, item) {\n return items.filter(function (i) {\n return i !== item;\n });\n}\n/**\n * drop-in replacement for _.isString\n * @param input\n */\n\nexport function isString(input) {\n return typeof input === 'string';\n}\n/**\n * drop-in replacement for _.isString\n * @param input\n */\n\nexport function isObject(input) {\n return _typeof(input) === 'object';\n}\n/**\n * repalcement for _.xor\n * @param itemsA\n * @param itemsB\n */\n\nexport function xor(itemsA, itemsB) {\n var map = new Map();\n\n var insertItem = function insertItem(item) {\n map.set(item, map.has(item) ? map.get(item) + 1 : 1);\n };\n\n itemsA.forEach(insertItem);\n itemsB.forEach(insertItem);\n var result = [];\n map.forEach(function (count, key) {\n if (count === 1) {\n result.push(key);\n }\n });\n return result;\n}\n/**\n * replacement for _.intersection\n * @param itemsA\n * @param itemsB\n */\n\nexport function intersection(itemsA, itemsB) {\n return itemsA.filter(function (t) {\n return itemsB.indexOf(t) > -1;\n });\n}","import { invariant } from '@react-dnd/invariant';\nimport { setClientOffset } from './local/setClientOffset';\nimport { isObject } from '../../utils/js_utils';\nimport { BEGIN_DRAG, INIT_COORDS } from './types';\nvar ResetCoordinatesAction = {\n type: INIT_COORDS,\n payload: {\n clientOffset: null,\n sourceClientOffset: null\n }\n};\nexport function createBeginDrag(manager) {\n return function beginDrag() {\n var sourceIds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n publishSource: true\n };\n var _options$publishSourc = options.publishSource,\n publishSource = _options$publishSourc === void 0 ? true : _options$publishSourc,\n clientOffset = options.clientOffset,\n getSourceClientOffset = options.getSourceClientOffset;\n var monitor = manager.getMonitor();\n var registry = manager.getRegistry(); // Initialize the coordinates using the client offset\n\n manager.dispatch(setClientOffset(clientOffset));\n verifyInvariants(sourceIds, monitor, registry); // Get the draggable source\n\n var sourceId = getDraggableSource(sourceIds, monitor);\n\n if (sourceId === null) {\n manager.dispatch(ResetCoordinatesAction);\n return;\n } // Get the source client offset\n\n\n var sourceClientOffset = null;\n\n if (clientOffset) {\n if (!getSourceClientOffset) {\n throw new Error('getSourceClientOffset must be defined');\n }\n\n verifyGetSourceClientOffsetIsFunction(getSourceClientOffset);\n sourceClientOffset = getSourceClientOffset(sourceId);\n } // Initialize the full coordinates\n\n\n manager.dispatch(setClientOffset(clientOffset, sourceClientOffset));\n var source = registry.getSource(sourceId);\n var item = source.beginDrag(monitor, sourceId); // If source.beginDrag returns null, this is an indicator to cancel the drag\n\n if (item == null) {\n return undefined;\n }\n\n verifyItemIsObject(item);\n registry.pinSource(sourceId);\n var itemType = registry.getSourceType(sourceId);\n return {\n type: BEGIN_DRAG,\n payload: {\n itemType: itemType,\n item: item,\n sourceId: sourceId,\n clientOffset: clientOffset || null,\n sourceClientOffset: sourceClientOffset || null,\n isSourcePublic: !!publishSource\n }\n };\n };\n}\n\nfunction verifyInvariants(sourceIds, monitor, registry) {\n invariant(!monitor.isDragging(), 'Cannot call beginDrag while dragging.');\n sourceIds.forEach(function (sourceId) {\n invariant(registry.getSource(sourceId), 'Expected sourceIds to be registered.');\n });\n}\n\nfunction verifyGetSourceClientOffsetIsFunction(getSourceClientOffset) {\n invariant(typeof getSourceClientOffset === 'function', 'When clientOffset is provided, getSourceClientOffset must be a function.');\n}\n\nfunction verifyItemIsObject(item) {\n invariant(isObject(item), 'Item must be an object.');\n}\n\nfunction getDraggableSource(sourceIds, monitor) {\n var sourceId = null;\n\n for (var i = sourceIds.length - 1; i >= 0; i--) {\n if (monitor.canDragSource(sourceIds[i])) {\n sourceId = sourceIds[i];\n break;\n }\n }\n\n return sourceId;\n}","import { PUBLISH_DRAG_SOURCE } from './types';\nexport function createPublishDragSource(manager) {\n return function publishDragSource() {\n var monitor = manager.getMonitor();\n\n if (monitor.isDragging()) {\n return {\n type: PUBLISH_DRAG_SOURCE\n };\n }\n };\n}","export function matchesType(targetType, draggedItemType) {\n if (draggedItemType === null) {\n return targetType === null;\n }\n\n return Array.isArray(targetType) ? targetType.some(function (t) {\n return t === draggedItemType;\n }) : targetType === draggedItemType;\n}","import { invariant } from '@react-dnd/invariant';\nimport { matchesType } from '../../utils/matchesType';\nimport { HOVER } from './types';\nexport function createHover(manager) {\n return function hover(targetIdsArg) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n clientOffset = _ref.clientOffset;\n\n verifyTargetIdsIsArray(targetIdsArg);\n var targetIds = targetIdsArg.slice(0);\n var monitor = manager.getMonitor();\n var registry = manager.getRegistry();\n checkInvariants(targetIds, monitor, registry);\n var draggedItemType = monitor.getItemType();\n removeNonMatchingTargetIds(targetIds, registry, draggedItemType);\n hoverAllTargets(targetIds, monitor, registry);\n return {\n type: HOVER,\n payload: {\n targetIds: targetIds,\n clientOffset: clientOffset || null\n }\n };\n };\n}\n\nfunction verifyTargetIdsIsArray(targetIdsArg) {\n invariant(Array.isArray(targetIdsArg), 'Expected targetIds to be an array.');\n}\n\nfunction checkInvariants(targetIds, monitor, registry) {\n invariant(monitor.isDragging(), 'Cannot call hover while not dragging.');\n invariant(!monitor.didDrop(), 'Cannot call hover after drop.');\n\n for (var i = 0; i < targetIds.length; i++) {\n var targetId = targetIds[i];\n invariant(targetIds.lastIndexOf(targetId) === i, 'Expected targetIds to be unique in the passed array.');\n var target = registry.getTarget(targetId);\n invariant(target, 'Expected targetIds to be registered.');\n }\n}\n\nfunction removeNonMatchingTargetIds(targetIds, registry, draggedItemType) {\n // Remove those targetIds that don't match the targetType. This\n // fixes shallow isOver which would only be non-shallow because of\n // non-matching targets.\n for (var i = targetIds.length - 1; i >= 0; i--) {\n var targetId = targetIds[i];\n var targetType = registry.getTargetType(targetId);\n\n if (!matchesType(targetType, draggedItemType)) {\n targetIds.splice(i, 1);\n }\n }\n}\n\nfunction hoverAllTargets(targetIds, monitor, registry) {\n // Finally call hover on all matching targets.\n targetIds.forEach(function (targetId) {\n var target = registry.getTarget(targetId);\n target.hover(monitor, targetId);\n });\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { invariant } from '@react-dnd/invariant';\nimport { DROP } from './types';\nimport { isObject } from '../../utils/js_utils';\nexport function createDrop(manager) {\n return function drop() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var monitor = manager.getMonitor();\n var registry = manager.getRegistry();\n verifyInvariants(monitor);\n var targetIds = getDroppableTargets(monitor); // Multiple actions are dispatched here, which is why this doesn't return an action\n\n targetIds.forEach(function (targetId, index) {\n var dropResult = determineDropResult(targetId, index, registry, monitor);\n var action = {\n type: DROP,\n payload: {\n dropResult: _objectSpread(_objectSpread({}, options), dropResult)\n }\n };\n manager.dispatch(action);\n });\n };\n}\n\nfunction verifyInvariants(monitor) {\n invariant(monitor.isDragging(), 'Cannot call drop while not dragging.');\n invariant(!monitor.didDrop(), 'Cannot call drop twice during one drag operation.');\n}\n\nfunction determineDropResult(targetId, index, registry, monitor) {\n var target = registry.getTarget(targetId);\n var dropResult = target ? target.drop(monitor, targetId) : undefined;\n verifyDropResultType(dropResult);\n\n if (typeof dropResult === 'undefined') {\n dropResult = index === 0 ? {} : monitor.getDropResult();\n }\n\n return dropResult;\n}\n\nfunction verifyDropResultType(dropResult) {\n invariant(typeof dropResult === 'undefined' || isObject(dropResult), 'Drop result must either be an object or undefined.');\n}\n\nfunction getDroppableTargets(monitor) {\n var targetIds = monitor.getTargetIds().filter(monitor.canDropOnTarget, monitor);\n targetIds.reverse();\n return targetIds;\n}","import { invariant } from '@react-dnd/invariant';\nimport { END_DRAG } from './types';\nexport function createEndDrag(manager) {\n return function endDrag() {\n var monitor = manager.getMonitor();\n var registry = manager.getRegistry();\n verifyIsDragging(monitor);\n var sourceId = monitor.getSourceId();\n\n if (sourceId != null) {\n var source = registry.getSource(sourceId, true);\n source.endDrag(monitor, sourceId);\n registry.unpinSource();\n }\n\n return {\n type: END_DRAG\n };\n };\n}\n\nfunction verifyIsDragging(monitor) {\n invariant(monitor.isDragging(), 'Cannot call endDrag while not dragging.');\n}","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { createDragDropActions } from '../actions/dragDrop';\nexport var DragDropManagerImpl = /*#__PURE__*/function () {\n function DragDropManagerImpl(store, monitor) {\n var _this = this;\n\n _classCallCheck(this, DragDropManagerImpl);\n\n this.isSetUp = false;\n\n this.handleRefCountChange = function () {\n var shouldSetUp = _this.store.getState().refCount > 0;\n\n if (_this.backend) {\n if (shouldSetUp && !_this.isSetUp) {\n _this.backend.setup();\n\n _this.isSetUp = true;\n } else if (!shouldSetUp && _this.isSetUp) {\n _this.backend.teardown();\n\n _this.isSetUp = false;\n }\n }\n };\n\n this.store = store;\n this.monitor = monitor;\n store.subscribe(this.handleRefCountChange);\n }\n\n _createClass(DragDropManagerImpl, [{\n key: \"receiveBackend\",\n value: function receiveBackend(backend) {\n this.backend = backend;\n }\n }, {\n key: \"getMonitor\",\n value: function getMonitor() {\n return this.monitor;\n }\n }, {\n key: \"getBackend\",\n value: function getBackend() {\n return this.backend;\n }\n }, {\n key: \"getRegistry\",\n value: function getRegistry() {\n return this.monitor.registry;\n }\n }, {\n key: \"getActions\",\n value: function getActions() {\n /* eslint-disable-next-line @typescript-eslint/no-this-alias */\n var manager = this;\n var dispatch = this.store.dispatch;\n\n function bindActionCreator(actionCreator) {\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var action = actionCreator.apply(manager, args);\n\n if (typeof action !== 'undefined') {\n dispatch(action);\n }\n };\n }\n\n var actions = createDragDropActions(this);\n return Object.keys(actions).reduce(function (boundActions, key) {\n var action = actions[key];\n boundActions[key] = bindActionCreator(action);\n return boundActions;\n }, {});\n }\n }, {\n key: \"dispatch\",\n value: function dispatch(action) {\n this.store.dispatch(action);\n }\n }]);\n\n return DragDropManagerImpl;\n}();","import { createBeginDrag } from './beginDrag';\nimport { createPublishDragSource } from './publishDragSource';\nimport { createHover } from './hover';\nimport { createDrop } from './drop';\nimport { createEndDrag } from './endDrag';\nexport * from './types';\nexport function createDragDropActions(manager) {\n return {\n beginDrag: createBeginDrag(manager),\n publishDragSource: createPublishDragSource(manager),\n hover: createHover(manager),\n drop: createDrop(manager),\n endDrag: createEndDrag(manager)\n };\n}","import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';\n\n/**\n * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js\n *\n * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes\n * during build.\n * @param {number} code\n */\nfunction formatProdErrorMessage(code) {\n return \"Minified Redux error #\" + code + \"; visit https://redux.js.org/Errors?code=\" + code + \" for the full message or \" + 'use the non-minified dev environment for full errors. ';\n}\n\n// Inlined version of the `symbol-observable` polyfill\nvar $$observable = (function () {\n return typeof Symbol === 'function' && Symbol.observable || '@@observable';\n})();\n\n/**\n * These are private action types reserved by Redux.\n * For any unknown actions, you must return the current state.\n * If the current state is undefined, you must return the initial state.\n * Do not reference these action types directly in your code.\n */\nvar randomString = function randomString() {\n return Math.random().toString(36).substring(7).split('').join('.');\n};\n\nvar ActionTypes = {\n INIT: \"@@redux/INIT\" + randomString(),\n REPLACE: \"@@redux/REPLACE\" + randomString(),\n PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {\n return \"@@redux/PROBE_UNKNOWN_ACTION\" + randomString();\n }\n};\n\n/**\n * @param {any} obj The object to inspect.\n * @returns {boolean} True if the argument appears to be a plain object.\n */\nfunction isPlainObject(obj) {\n if (typeof obj !== 'object' || obj === null) return false;\n var proto = obj;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(obj) === proto;\n}\n\n// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of\nfunction miniKindOf(val) {\n if (val === void 0) return 'undefined';\n if (val === null) return 'null';\n var type = typeof val;\n\n switch (type) {\n case 'boolean':\n case 'string':\n case 'number':\n case 'symbol':\n case 'function':\n {\n return type;\n }\n }\n\n if (Array.isArray(val)) return 'array';\n if (isDate(val)) return 'date';\n if (isError(val)) return 'error';\n var constructorName = ctorName(val);\n\n switch (constructorName) {\n case 'Symbol':\n case 'Promise':\n case 'WeakMap':\n case 'WeakSet':\n case 'Map':\n case 'Set':\n return constructorName;\n } // other\n\n\n return type.slice(8, -1).toLowerCase().replace(/\\s/g, '');\n}\n\nfunction ctorName(val) {\n return typeof val.constructor === 'function' ? val.constructor.name : null;\n}\n\nfunction isError(val) {\n return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';\n}\n\nfunction isDate(val) {\n if (val instanceof Date) return true;\n return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';\n}\n\nfunction kindOf(val) {\n var typeOfVal = typeof val;\n\n if (process.env.NODE_ENV !== 'production') {\n typeOfVal = miniKindOf(val);\n }\n\n return typeOfVal;\n}\n\n/**\n * @deprecated\n *\n * **We recommend using the `configureStore` method\n * of the `@reduxjs/toolkit` package**, which replaces `createStore`.\n *\n * Redux Toolkit is our recommended approach for writing Redux logic today,\n * including store setup, reducers, data fetching, and more.\n *\n * **For more details, please read this Redux docs page:**\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * `configureStore` from Redux Toolkit is an improved version of `createStore` that\n * simplifies setup and helps avoid common bugs.\n *\n * You should not be using the `redux` core package by itself today, except for learning purposes.\n * The `createStore` method from the core `redux` package will not be removed, but we encourage\n * all users to migrate to using Redux Toolkit for all Redux code.\n *\n * If you want to use `createStore` without this visual deprecation warning, use\n * the `legacy_createStore` import instead:\n *\n * `import { legacy_createStore as createStore} from 'redux'`\n *\n */\n\nfunction createStore(reducer, preloadedState, enhancer) {\n var _ref2;\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(0) : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');\n }\n\n if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {\n enhancer = preloadedState;\n preloadedState = undefined;\n }\n\n if (typeof enhancer !== 'undefined') {\n if (typeof enhancer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(1) : \"Expected the enhancer to be a function. Instead, received: '\" + kindOf(enhancer) + \"'\");\n }\n\n return enhancer(createStore)(reducer, preloadedState);\n }\n\n if (typeof reducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(2) : \"Expected the root reducer to be a function. Instead, received: '\" + kindOf(reducer) + \"'\");\n }\n\n var currentReducer = reducer;\n var currentState = preloadedState;\n var currentListeners = [];\n var nextListeners = currentListeners;\n var isDispatching = false;\n /**\n * This makes a shallow copy of currentListeners so we can use\n * nextListeners as a temporary list while dispatching.\n *\n * This prevents any bugs around consumers calling\n * subscribe/unsubscribe in the middle of a dispatch.\n */\n\n function ensureCanMutateNextListeners() {\n if (nextListeners === currentListeners) {\n nextListeners = currentListeners.slice();\n }\n }\n /**\n * Reads the state tree managed by the store.\n *\n * @returns {any} The current state tree of your application.\n */\n\n\n function getState() {\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(3) : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');\n }\n\n return currentState;\n }\n /**\n * Adds a change listener. It will be called any time an action is dispatched,\n * and some part of the state tree may potentially have changed. You may then\n * call `getState()` to read the current state tree inside the callback.\n *\n * You may call `dispatch()` from a change listener, with the following\n * caveats:\n *\n * 1. The subscriptions are snapshotted just before every `dispatch()` call.\n * If you subscribe or unsubscribe while the listeners are being invoked, this\n * will not have any effect on the `dispatch()` that is currently in progress.\n * However, the next `dispatch()` call, whether nested or not, will use a more\n * recent snapshot of the subscription list.\n *\n * 2. The listener should not expect to see all state changes, as the state\n * might have been updated multiple times during a nested `dispatch()` before\n * the listener is called. It is, however, guaranteed that all subscribers\n * registered before the `dispatch()` started will be called with the latest\n * state by the time it exits.\n *\n * @param {Function} listener A callback to be invoked on every dispatch.\n * @returns {Function} A function to remove this change listener.\n */\n\n\n function subscribe(listener) {\n if (typeof listener !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(4) : \"Expected the listener to be a function. Instead, received: '\" + kindOf(listener) + \"'\");\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(5) : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n\n var isSubscribed = true;\n ensureCanMutateNextListeners();\n nextListeners.push(listener);\n return function unsubscribe() {\n if (!isSubscribed) {\n return;\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(6) : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');\n }\n\n isSubscribed = false;\n ensureCanMutateNextListeners();\n var index = nextListeners.indexOf(listener);\n nextListeners.splice(index, 1);\n currentListeners = null;\n };\n }\n /**\n * Dispatches an action. It is the only way to trigger a state change.\n *\n * The `reducer` function, used to create the store, will be called with the\n * current state tree and the given `action`. Its return value will\n * be considered the **next** state of the tree, and the change listeners\n * will be notified.\n *\n * The base implementation only supports plain object actions. If you want to\n * dispatch a Promise, an Observable, a thunk, or something else, you need to\n * wrap your store creating function into the corresponding middleware. For\n * example, see the documentation for the `redux-thunk` package. Even the\n * middleware will eventually dispatch plain object actions using this method.\n *\n * @param {Object} action A plain object representing “what changed”. It is\n * a good idea to keep actions serializable so you can record and replay user\n * sessions, or use the time travelling `redux-devtools`. An action must have\n * a `type` property which may not be `undefined`. It is a good idea to use\n * string constants for action types.\n *\n * @returns {Object} For convenience, the same action object you dispatched.\n *\n * Note that, if you use a custom middleware, it may wrap `dispatch()` to\n * return something else (for example, a Promise you can await).\n */\n\n\n function dispatch(action) {\n if (!isPlainObject(action)) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(7) : \"Actions must be plain objects. Instead, the actual type was: '\" + kindOf(action) + \"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.\");\n }\n\n if (typeof action.type === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(8) : 'Actions may not have an undefined \"type\" property. You may have misspelled an action type string constant.');\n }\n\n if (isDispatching) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(9) : 'Reducers may not dispatch actions.');\n }\n\n try {\n isDispatching = true;\n currentState = currentReducer(currentState, action);\n } finally {\n isDispatching = false;\n }\n\n var listeners = currentListeners = nextListeners;\n\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n\n return action;\n }\n /**\n * Replaces the reducer currently used by the store to calculate the state.\n *\n * You might need this if your app implements code splitting and you want to\n * load some of the reducers dynamically. You might also need this if you\n * implement a hot reloading mechanism for Redux.\n *\n * @param {Function} nextReducer The reducer for the store to use instead.\n * @returns {void}\n */\n\n\n function replaceReducer(nextReducer) {\n if (typeof nextReducer !== 'function') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(10) : \"Expected the nextReducer to be a function. Instead, received: '\" + kindOf(nextReducer));\n }\n\n currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.\n // Any reducers that existed in both the new and old rootReducer\n // will receive the previous state. This effectively populates\n // the new state tree with any relevant data from the old one.\n\n dispatch({\n type: ActionTypes.REPLACE\n });\n }\n /**\n * Interoperability point for observable/reactive libraries.\n * @returns {observable} A minimal observable of state changes.\n * For more information, see the observable proposal:\n * https://github.com/tc39/proposal-observable\n */\n\n\n function observable() {\n var _ref;\n\n var outerSubscribe = subscribe;\n return _ref = {\n /**\n * The minimal observable subscription method.\n * @param {Object} observer Any object that can be used as an observer.\n * The observer object should have a `next` method.\n * @returns {subscription} An object with an `unsubscribe` method that can\n * be used to unsubscribe the observable from the store, and prevent further\n * emission of values from the observable.\n */\n subscribe: function subscribe(observer) {\n if (typeof observer !== 'object' || observer === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(11) : \"Expected the observer to be an object. Instead, received: '\" + kindOf(observer) + \"'\");\n }\n\n function observeState() {\n if (observer.next) {\n observer.next(getState());\n }\n }\n\n observeState();\n var unsubscribe = outerSubscribe(observeState);\n return {\n unsubscribe: unsubscribe\n };\n }\n }, _ref[$$observable] = function () {\n return this;\n }, _ref;\n } // When a store is created, an \"INIT\" action is dispatched so that every\n // reducer returns their initial state. This effectively populates\n // the initial state tree.\n\n\n dispatch({\n type: ActionTypes.INIT\n });\n return _ref2 = {\n dispatch: dispatch,\n subscribe: subscribe,\n getState: getState,\n replaceReducer: replaceReducer\n }, _ref2[$$observable] = observable, _ref2;\n}\n/**\n * Creates a Redux store that holds the state tree.\n *\n * **We recommend using `configureStore` from the\n * `@reduxjs/toolkit` package**, which replaces `createStore`:\n * **https://redux.js.org/introduction/why-rtk-is-redux-today**\n *\n * The only way to change the data in the store is to call `dispatch()` on it.\n *\n * There should only be a single store in your app. To specify how different\n * parts of the state tree respond to actions, you may combine several reducers\n * into a single reducer function by using `combineReducers`.\n *\n * @param {Function} reducer A function that returns the next state tree, given\n * the current state tree and the action to handle.\n *\n * @param {any} [preloadedState] The initial state. You may optionally specify it\n * to hydrate the state from the server in universal apps, or to restore a\n * previously serialized user session.\n * If you use `combineReducers` to produce the root reducer function, this must be\n * an object with the same shape as `combineReducers` keys.\n *\n * @param {Function} [enhancer] The store enhancer. You may optionally specify it\n * to enhance the store with third-party capabilities such as middleware,\n * time travel, persistence, etc. The only store enhancer that ships with Redux\n * is `applyMiddleware()`.\n *\n * @returns {Store} A Redux store that lets you read the state, dispatch actions\n * and subscribe to changes.\n */\n\nvar legacy_createStore = createStore;\n\n/**\n * Prints a warning in the console if it exists.\n *\n * @param {String} message The warning message.\n * @returns {void}\n */\nfunction warning(message) {\n /* eslint-disable no-console */\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(message);\n }\n /* eslint-enable no-console */\n\n\n try {\n // This error was thrown as a convenience so that if you enable\n // \"break on all exceptions\" in your console,\n // it would pause the execution at this line.\n throw new Error(message);\n } catch (e) {} // eslint-disable-line no-empty\n\n}\n\nfunction getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {\n var reducerKeys = Object.keys(reducers);\n var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';\n\n if (reducerKeys.length === 0) {\n return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';\n }\n\n if (!isPlainObject(inputState)) {\n return \"The \" + argumentName + \" has unexpected type of \\\"\" + kindOf(inputState) + \"\\\". Expected argument to be an object with the following \" + (\"keys: \\\"\" + reducerKeys.join('\", \"') + \"\\\"\");\n }\n\n var unexpectedKeys = Object.keys(inputState).filter(function (key) {\n return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];\n });\n unexpectedKeys.forEach(function (key) {\n unexpectedKeyCache[key] = true;\n });\n if (action && action.type === ActionTypes.REPLACE) return;\n\n if (unexpectedKeys.length > 0) {\n return \"Unexpected \" + (unexpectedKeys.length > 1 ? 'keys' : 'key') + \" \" + (\"\\\"\" + unexpectedKeys.join('\", \"') + \"\\\" found in \" + argumentName + \". \") + \"Expected to find one of the known reducer keys instead: \" + (\"\\\"\" + reducerKeys.join('\", \"') + \"\\\". Unexpected keys will be ignored.\");\n }\n}\n\nfunction assertReducerShape(reducers) {\n Object.keys(reducers).forEach(function (key) {\n var reducer = reducers[key];\n var initialState = reducer(undefined, {\n type: ActionTypes.INIT\n });\n\n if (typeof initialState === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(12) : \"The slice reducer for key \\\"\" + key + \"\\\" returned undefined during initialization. \" + \"If the state passed to the reducer is undefined, you must \" + \"explicitly return the initial state. The initial state may \" + \"not be undefined. If you don't want to set a value for this reducer, \" + \"you can use null instead of undefined.\");\n }\n\n if (typeof reducer(undefined, {\n type: ActionTypes.PROBE_UNKNOWN_ACTION()\n }) === 'undefined') {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(13) : \"The slice reducer for key \\\"\" + key + \"\\\" returned undefined when probed with a random type. \" + (\"Don't try to handle '\" + ActionTypes.INIT + \"' or other actions in \\\"redux/*\\\" \") + \"namespace. They are considered private. Instead, you must return the \" + \"current state for any unknown actions, unless it is undefined, \" + \"in which case you must return the initial state, regardless of the \" + \"action type. The initial state may not be undefined, but can be null.\");\n }\n });\n}\n/**\n * Turns an object whose values are different reducer functions, into a single\n * reducer function. It will call every child reducer, and gather their results\n * into a single state object, whose keys correspond to the keys of the passed\n * reducer functions.\n *\n * @param {Object} reducers An object whose values correspond to different\n * reducer functions that need to be combined into one. One handy way to obtain\n * it is to use ES6 `import * as reducers` syntax. The reducers may never return\n * undefined for any action. Instead, they should return their initial state\n * if the state passed to them was undefined, and the current state for any\n * unrecognized action.\n *\n * @returns {Function} A reducer function that invokes every reducer inside the\n * passed object, and builds a state object with the same shape.\n */\n\n\nfunction combineReducers(reducers) {\n var reducerKeys = Object.keys(reducers);\n var finalReducers = {};\n\n for (var i = 0; i < reducerKeys.length; i++) {\n var key = reducerKeys[i];\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof reducers[key] === 'undefined') {\n warning(\"No reducer provided for key \\\"\" + key + \"\\\"\");\n }\n }\n\n if (typeof reducers[key] === 'function') {\n finalReducers[key] = reducers[key];\n }\n }\n\n var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same\n // keys multiple times.\n\n var unexpectedKeyCache;\n\n if (process.env.NODE_ENV !== 'production') {\n unexpectedKeyCache = {};\n }\n\n var shapeAssertionError;\n\n try {\n assertReducerShape(finalReducers);\n } catch (e) {\n shapeAssertionError = e;\n }\n\n return function combination(state, action) {\n if (state === void 0) {\n state = {};\n }\n\n if (shapeAssertionError) {\n throw shapeAssertionError;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);\n\n if (warningMessage) {\n warning(warningMessage);\n }\n }\n\n var hasChanged = false;\n var nextState = {};\n\n for (var _i = 0; _i < finalReducerKeys.length; _i++) {\n var _key = finalReducerKeys[_i];\n var reducer = finalReducers[_key];\n var previousStateForKey = state[_key];\n var nextStateForKey = reducer(previousStateForKey, action);\n\n if (typeof nextStateForKey === 'undefined') {\n var actionType = action && action.type;\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(14) : \"When called with an action of type \" + (actionType ? \"\\\"\" + String(actionType) + \"\\\"\" : '(unknown type)') + \", the slice reducer for key \\\"\" + _key + \"\\\" returned undefined. \" + \"To ignore an action, you must explicitly return the previous state. \" + \"If you want this reducer to hold no value, you can return null instead of undefined.\");\n }\n\n nextState[_key] = nextStateForKey;\n hasChanged = hasChanged || nextStateForKey !== previousStateForKey;\n }\n\n hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;\n return hasChanged ? nextState : state;\n };\n}\n\nfunction bindActionCreator(actionCreator, dispatch) {\n return function () {\n return dispatch(actionCreator.apply(this, arguments));\n };\n}\n/**\n * Turns an object whose values are action creators, into an object with the\n * same keys, but with every function wrapped into a `dispatch` call so they\n * may be invoked directly. This is just a convenience method, as you can call\n * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.\n *\n * For convenience, you can also pass an action creator as the first argument,\n * and get a dispatch wrapped function in return.\n *\n * @param {Function|Object} actionCreators An object whose values are action\n * creator functions. One handy way to obtain it is to use ES6 `import * as`\n * syntax. You may also pass a single function.\n *\n * @param {Function} dispatch The `dispatch` function available on your Redux\n * store.\n *\n * @returns {Function|Object} The object mimicking the original object, but with\n * every action creator wrapped into the `dispatch` call. If you passed a\n * function as `actionCreators`, the return value will also be a single\n * function.\n */\n\n\nfunction bindActionCreators(actionCreators, dispatch) {\n if (typeof actionCreators === 'function') {\n return bindActionCreator(actionCreators, dispatch);\n }\n\n if (typeof actionCreators !== 'object' || actionCreators === null) {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(16) : \"bindActionCreators expected an object or a function, but instead received: '\" + kindOf(actionCreators) + \"'. \" + \"Did you write \\\"import ActionCreators from\\\" instead of \\\"import * as ActionCreators from\\\"?\");\n }\n\n var boundActionCreators = {};\n\n for (var key in actionCreators) {\n var actionCreator = actionCreators[key];\n\n if (typeof actionCreator === 'function') {\n boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);\n }\n }\n\n return boundActionCreators;\n}\n\n/**\n * Composes single-argument functions from right to left. The rightmost\n * function can take multiple arguments as it provides the signature for\n * the resulting composite function.\n *\n * @param {...Function} funcs The functions to compose.\n * @returns {Function} A function obtained by composing the argument functions\n * from right to left. For example, compose(f, g, h) is identical to doing\n * (...args) => f(g(h(...args))).\n */\nfunction compose() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n if (funcs.length === 0) {\n return function (arg) {\n return arg;\n };\n }\n\n if (funcs.length === 1) {\n return funcs[0];\n }\n\n return funcs.reduce(function (a, b) {\n return function () {\n return a(b.apply(void 0, arguments));\n };\n });\n}\n\n/**\n * Creates a store enhancer that applies middleware to the dispatch method\n * of the Redux store. This is handy for a variety of tasks, such as expressing\n * asynchronous actions in a concise manner, or logging every action payload.\n *\n * See `redux-thunk` package as an example of the Redux middleware.\n *\n * Because middleware is potentially asynchronous, this should be the first\n * store enhancer in the composition chain.\n *\n * Note that each middleware will be given the `dispatch` and `getState` functions\n * as named arguments.\n *\n * @param {...Function} middlewares The middleware chain to be applied.\n * @returns {Function} A store enhancer applying the middleware.\n */\n\nfunction applyMiddleware() {\n for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {\n middlewares[_key] = arguments[_key];\n }\n\n return function (createStore) {\n return function () {\n var store = createStore.apply(void 0, arguments);\n\n var _dispatch = function dispatch() {\n throw new Error(process.env.NODE_ENV === \"production\" ? formatProdErrorMessage(15) : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');\n };\n\n var middlewareAPI = {\n getState: store.getState,\n dispatch: function dispatch() {\n return _dispatch.apply(void 0, arguments);\n }\n };\n var chain = middlewares.map(function (middleware) {\n return middleware(middlewareAPI);\n });\n _dispatch = compose.apply(void 0, chain)(store.dispatch);\n return _objectSpread(_objectSpread({}, store), {}, {\n dispatch: _dispatch\n });\n };\n };\n}\n\n/*\n * This is a dummy function to check if the function name has been altered by minification.\n * If the function has been minified and NODE_ENV !== 'production', warn the user.\n */\n\nfunction isCrushed() {}\n\nif (process.env.NODE_ENV !== 'production' && typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {\n warning('You are currently using minified code outside of NODE_ENV === \"production\". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');\n}\n\nexport { ActionTypes as __DO_NOT_USE__ActionTypes, applyMiddleware, bindActionCreators, combineReducers, compose, createStore, legacy_createStore };\n","export var strictEquality = function strictEquality(a, b) {\n return a === b;\n};\n/**\n * Determine if two cartesian coordinate offsets are equal\n * @param offsetA\n * @param offsetB\n */\n\nexport function areCoordsEqual(offsetA, offsetB) {\n if (!offsetA && !offsetB) {\n return true;\n } else if (!offsetA || !offsetB) {\n return false;\n } else {\n return offsetA.x === offsetB.x && offsetA.y === offsetB.y;\n }\n}\n/**\n * Determines if two arrays of items are equal\n * @param a The first array of items\n * @param b The second array of items\n */\n\nexport function areArraysEqual(a, b) {\n var isEqual = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : strictEquality;\n\n if (a.length !== b.length) {\n return false;\n }\n\n for (var i = 0; i < a.length; ++i) {\n if (!isEqual(a[i], b[i])) {\n return false;\n }\n }\n\n return true;\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { INIT_COORDS, BEGIN_DRAG, HOVER, END_DRAG, DROP } from '../actions/dragDrop';\nimport { areCoordsEqual } from '../utils/equality';\nvar initialState = {\n initialSourceClientOffset: null,\n initialClientOffset: null,\n clientOffset: null\n};\nexport function reduce() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;\n var action = arguments.length > 1 ? arguments[1] : undefined;\n var payload = action.payload;\n\n switch (action.type) {\n case INIT_COORDS:\n case BEGIN_DRAG:\n return {\n initialSourceClientOffset: payload.sourceClientOffset,\n initialClientOffset: payload.clientOffset,\n clientOffset: payload.clientOffset\n };\n\n case HOVER:\n if (areCoordsEqual(state.clientOffset, payload.clientOffset)) {\n return state;\n }\n\n return _objectSpread(_objectSpread({}, state), {}, {\n clientOffset: payload.clientOffset\n });\n\n case END_DRAG:\n case DROP:\n return initialState;\n\n default:\n return state;\n }\n}","export var ADD_SOURCE = 'dnd-core/ADD_SOURCE';\nexport var ADD_TARGET = 'dnd-core/ADD_TARGET';\nexport var REMOVE_SOURCE = 'dnd-core/REMOVE_SOURCE';\nexport var REMOVE_TARGET = 'dnd-core/REMOVE_TARGET';\nexport function addSource(sourceId) {\n return {\n type: ADD_SOURCE,\n payload: {\n sourceId: sourceId\n }\n };\n}\nexport function addTarget(targetId) {\n return {\n type: ADD_TARGET,\n payload: {\n targetId: targetId\n }\n };\n}\nexport function removeSource(sourceId) {\n return {\n type: REMOVE_SOURCE,\n payload: {\n sourceId: sourceId\n }\n };\n}\nexport function removeTarget(targetId) {\n return {\n type: REMOVE_TARGET,\n payload: {\n targetId: targetId\n }\n };\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { BEGIN_DRAG, PUBLISH_DRAG_SOURCE, HOVER, END_DRAG, DROP } from '../actions/dragDrop';\nimport { REMOVE_TARGET } from '../actions/registry';\nimport { without } from '../utils/js_utils';\nvar initialState = {\n itemType: null,\n item: null,\n sourceId: null,\n targetIds: [],\n dropResult: null,\n didDrop: false,\n isSourcePublic: null\n};\nexport function reduce() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;\n var action = arguments.length > 1 ? arguments[1] : undefined;\n var payload = action.payload;\n\n switch (action.type) {\n case BEGIN_DRAG:\n return _objectSpread(_objectSpread({}, state), {}, {\n itemType: payload.itemType,\n item: payload.item,\n sourceId: payload.sourceId,\n isSourcePublic: payload.isSourcePublic,\n dropResult: null,\n didDrop: false\n });\n\n case PUBLISH_DRAG_SOURCE:\n return _objectSpread(_objectSpread({}, state), {}, {\n isSourcePublic: true\n });\n\n case HOVER:\n return _objectSpread(_objectSpread({}, state), {}, {\n targetIds: payload.targetIds\n });\n\n case REMOVE_TARGET:\n if (state.targetIds.indexOf(payload.targetId) === -1) {\n return state;\n }\n\n return _objectSpread(_objectSpread({}, state), {}, {\n targetIds: without(state.targetIds, payload.targetId)\n });\n\n case DROP:\n return _objectSpread(_objectSpread({}, state), {}, {\n dropResult: payload.dropResult,\n didDrop: true,\n targetIds: []\n });\n\n case END_DRAG:\n return _objectSpread(_objectSpread({}, state), {}, {\n itemType: null,\n item: null,\n sourceId: null,\n dropResult: null,\n didDrop: false,\n isSourcePublic: null,\n targetIds: []\n });\n\n default:\n return state;\n }\n}","import { ADD_SOURCE, ADD_TARGET, REMOVE_SOURCE, REMOVE_TARGET } from '../actions/registry';\nexport function reduce() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n var action = arguments.length > 1 ? arguments[1] : undefined;\n\n switch (action.type) {\n case ADD_SOURCE:\n case ADD_TARGET:\n return state + 1;\n\n case REMOVE_SOURCE:\n case REMOVE_TARGET:\n return state - 1;\n\n default:\n return state;\n }\n}","import { intersection } from './js_utils';\nexport var NONE = [];\nexport var ALL = [];\nNONE.__IS_NONE__ = true;\nALL.__IS_ALL__ = true;\n/**\n * Determines if the given handler IDs are dirty or not.\n *\n * @param dirtyIds The set of dirty handler ids\n * @param handlerIds The set of handler ids to check\n */\n\nexport function areDirty(dirtyIds, handlerIds) {\n if (dirtyIds === NONE) {\n return false;\n }\n\n if (dirtyIds === ALL || typeof handlerIds === 'undefined') {\n return true;\n }\n\n var commonIds = intersection(handlerIds, dirtyIds);\n return commonIds.length > 0;\n}","import { BEGIN_DRAG, PUBLISH_DRAG_SOURCE, HOVER, END_DRAG, DROP } from '../actions/dragDrop';\nimport { ADD_SOURCE, ADD_TARGET, REMOVE_SOURCE, REMOVE_TARGET } from '../actions/registry';\nimport { areArraysEqual } from '../utils/equality';\nimport { NONE, ALL } from '../utils/dirtiness';\nimport { xor } from '../utils/js_utils';\nexport function reduce() {\n var _state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : NONE;\n\n var action = arguments.length > 1 ? arguments[1] : undefined;\n\n switch (action.type) {\n case HOVER:\n break;\n\n case ADD_SOURCE:\n case ADD_TARGET:\n case REMOVE_TARGET:\n case REMOVE_SOURCE:\n return NONE;\n\n case BEGIN_DRAG:\n case PUBLISH_DRAG_SOURCE:\n case END_DRAG:\n case DROP:\n default:\n return ALL;\n }\n\n var _action$payload = action.payload,\n _action$payload$targe = _action$payload.targetIds,\n targetIds = _action$payload$targe === void 0 ? [] : _action$payload$targe,\n _action$payload$prevT = _action$payload.prevTargetIds,\n prevTargetIds = _action$payload$prevT === void 0 ? [] : _action$payload$prevT;\n var result = xor(targetIds, prevTargetIds);\n var didChange = result.length > 0 || !areArraysEqual(targetIds, prevTargetIds);\n\n if (!didChange) {\n return NONE;\n } // Check the target ids at the innermost position. If they are valid, add them\n // to the result\n\n\n var prevInnermostTargetId = prevTargetIds[prevTargetIds.length - 1];\n var innermostTargetId = targetIds[targetIds.length - 1];\n\n if (prevInnermostTargetId !== innermostTargetId) {\n if (prevInnermostTargetId) {\n result.push(prevInnermostTargetId);\n }\n\n if (innermostTargetId) {\n result.push(innermostTargetId);\n }\n }\n\n return result;\n}","export function reduce() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;\n return state + 1;\n}","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport { reduce as dragOffset } from './dragOffset';\nimport { reduce as dragOperation } from './dragOperation';\nimport { reduce as refCount } from './refCount';\nimport { reduce as dirtyHandlerIds } from './dirtyHandlerIds';\nimport { reduce as stateId } from './stateId';\nimport { get } from '../utils/js_utils';\nexport function reduce() {\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var action = arguments.length > 1 ? arguments[1] : undefined;\n return {\n dirtyHandlerIds: dirtyHandlerIds(state.dirtyHandlerIds, {\n type: action.type,\n payload: _objectSpread(_objectSpread({}, action.payload), {}, {\n prevTargetIds: get(state, 'dragOperation.targetIds', [])\n })\n }),\n dragOffset: dragOffset(state.dragOffset, action),\n refCount: refCount(state.refCount, action),\n dragOperation: dragOperation(state.dragOperation, action),\n stateId: stateId(state.stateId)\n };\n}","/**\n * Coordinate addition\n * @param a The first coordinate\n * @param b The second coordinate\n */\nexport function add(a, b) {\n return {\n x: a.x + b.x,\n y: a.y + b.y\n };\n}\n/**\n * Coordinate subtraction\n * @param a The first coordinate\n * @param b The second coordinate\n */\n\nexport function subtract(a, b) {\n return {\n x: a.x - b.x,\n y: a.y - b.y\n };\n}\n/**\n * Returns the cartesian distance of the drag source component's position, based on its position\n * at the time when the current drag operation has started, and the movement difference.\n *\n * Returns null if no item is being dragged.\n *\n * @param state The offset state to compute from\n */\n\nexport function getSourceClientOffset(state) {\n var clientOffset = state.clientOffset,\n initialClientOffset = state.initialClientOffset,\n initialSourceClientOffset = state.initialSourceClientOffset;\n\n if (!clientOffset || !initialClientOffset || !initialSourceClientOffset) {\n return null;\n }\n\n return subtract(add(clientOffset, initialSourceClientOffset), initialClientOffset);\n}\n/**\n * Determines the x,y offset between the client offset and the initial client offset\n *\n * @param state The offset state to compute from\n */\n\nexport function getDifferenceFromInitialOffset(state) {\n var clientOffset = state.clientOffset,\n initialClientOffset = state.initialClientOffset;\n\n if (!clientOffset || !initialClientOffset) {\n return null;\n }\n\n return subtract(clientOffset, initialClientOffset);\n}","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport { invariant } from '@react-dnd/invariant';\nimport { matchesType } from '../utils/matchesType';\nimport { getSourceClientOffset as _getSourceClientOffset, getDifferenceFromInitialOffset as _getDifferenceFromInitialOffset } from '../utils/coords';\nimport { areDirty } from '../utils/dirtiness';\nexport var DragDropMonitorImpl = /*#__PURE__*/function () {\n function DragDropMonitorImpl(store, registry) {\n _classCallCheck(this, DragDropMonitorImpl);\n\n this.store = store;\n this.registry = registry;\n }\n\n _createClass(DragDropMonitorImpl, [{\n key: \"subscribeToStateChange\",\n value: function subscribeToStateChange(listener) {\n var _this = this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n handlerIds: undefined\n };\n var handlerIds = options.handlerIds;\n invariant(typeof listener === 'function', 'listener must be a function.');\n invariant(typeof handlerIds === 'undefined' || Array.isArray(handlerIds), 'handlerIds, when specified, must be an array of strings.');\n var prevStateId = this.store.getState().stateId;\n\n var handleChange = function handleChange() {\n var state = _this.store.getState();\n\n var currentStateId = state.stateId;\n\n try {\n var canSkipListener = currentStateId === prevStateId || currentStateId === prevStateId + 1 && !areDirty(state.dirtyHandlerIds, handlerIds);\n\n if (!canSkipListener) {\n listener();\n }\n } finally {\n prevStateId = currentStateId;\n }\n };\n\n return this.store.subscribe(handleChange);\n }\n }, {\n key: \"subscribeToOffsetChange\",\n value: function subscribeToOffsetChange(listener) {\n var _this2 = this;\n\n invariant(typeof listener === 'function', 'listener must be a function.');\n var previousState = this.store.getState().dragOffset;\n\n var handleChange = function handleChange() {\n var nextState = _this2.store.getState().dragOffset;\n\n if (nextState === previousState) {\n return;\n }\n\n previousState = nextState;\n listener();\n };\n\n return this.store.subscribe(handleChange);\n }\n }, {\n key: \"canDragSource\",\n value: function canDragSource(sourceId) {\n if (!sourceId) {\n return false;\n }\n\n var source = this.registry.getSource(sourceId);\n invariant(source, \"Expected to find a valid source. sourceId=\".concat(sourceId));\n\n if (this.isDragging()) {\n return false;\n }\n\n return source.canDrag(this, sourceId);\n }\n }, {\n key: \"canDropOnTarget\",\n value: function canDropOnTarget(targetId) {\n // undefined on initial render\n if (!targetId) {\n return false;\n }\n\n var target = this.registry.getTarget(targetId);\n invariant(target, \"Expected to find a valid target. targetId=\".concat(targetId));\n\n if (!this.isDragging() || this.didDrop()) {\n return false;\n }\n\n var targetType = this.registry.getTargetType(targetId);\n var draggedItemType = this.getItemType();\n return matchesType(targetType, draggedItemType) && target.canDrop(this, targetId);\n }\n }, {\n key: \"isDragging\",\n value: function isDragging() {\n return Boolean(this.getItemType());\n }\n }, {\n key: \"isDraggingSource\",\n value: function isDraggingSource(sourceId) {\n // undefined on initial render\n if (!sourceId) {\n return false;\n }\n\n var source = this.registry.getSource(sourceId, true);\n invariant(source, \"Expected to find a valid source. sourceId=\".concat(sourceId));\n\n if (!this.isDragging() || !this.isSourcePublic()) {\n return false;\n }\n\n var sourceType = this.registry.getSourceType(sourceId);\n var draggedItemType = this.getItemType();\n\n if (sourceType !== draggedItemType) {\n return false;\n }\n\n return source.isDragging(this, sourceId);\n }\n }, {\n key: \"isOverTarget\",\n value: function isOverTarget(targetId) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n shallow: false\n };\n\n // undefined on initial render\n if (!targetId) {\n return false;\n }\n\n var shallow = options.shallow;\n\n if (!this.isDragging()) {\n return false;\n }\n\n var targetType = this.registry.getTargetType(targetId);\n var draggedItemType = this.getItemType();\n\n if (draggedItemType && !matchesType(targetType, draggedItemType)) {\n return false;\n }\n\n var targetIds = this.getTargetIds();\n\n if (!targetIds.length) {\n return false;\n }\n\n var index = targetIds.indexOf(targetId);\n\n if (shallow) {\n return index === targetIds.length - 1;\n } else {\n return index > -1;\n }\n }\n }, {\n key: \"getItemType\",\n value: function getItemType() {\n return this.store.getState().dragOperation.itemType;\n }\n }, {\n key: \"getItem\",\n value: function getItem() {\n return this.store.getState().dragOperation.item;\n }\n }, {\n key: \"getSourceId\",\n value: function getSourceId() {\n return this.store.getState().dragOperation.sourceId;\n }\n }, {\n key: \"getTargetIds\",\n value: function getTargetIds() {\n return this.store.getState().dragOperation.targetIds;\n }\n }, {\n key: \"getDropResult\",\n value: function getDropResult() {\n return this.store.getState().dragOperation.dropResult;\n }\n }, {\n key: \"didDrop\",\n value: function didDrop() {\n return this.store.getState().dragOperation.didDrop;\n }\n }, {\n key: \"isSourcePublic\",\n value: function isSourcePublic() {\n return Boolean(this.store.getState().dragOperation.isSourcePublic);\n }\n }, {\n key: \"getInitialClientOffset\",\n value: function getInitialClientOffset() {\n return this.store.getState().dragOffset.initialClientOffset;\n }\n }, {\n key: \"getInitialSourceClientOffset\",\n value: function getInitialSourceClientOffset() {\n return this.store.getState().dragOffset.initialSourceClientOffset;\n }\n }, {\n key: \"getClientOffset\",\n value: function getClientOffset() {\n return this.store.getState().dragOffset.clientOffset;\n }\n }, {\n key: \"getSourceClientOffset\",\n value: function getSourceClientOffset() {\n return _getSourceClientOffset(this.store.getState().dragOffset);\n }\n }, {\n key: \"getDifferenceFromInitialOffset\",\n value: function getDifferenceFromInitialOffset() {\n return _getDifferenceFromInitialOffset(this.store.getState().dragOffset);\n }\n }]);\n\n return DragDropMonitorImpl;\n}();","export var HandlerRole;\n\n(function (HandlerRole) {\n HandlerRole[\"SOURCE\"] = \"SOURCE\";\n HandlerRole[\"TARGET\"] = \"TARGET\";\n})(HandlerRole || (HandlerRole = {}));","var nextUniqueId = 0;\nexport function getNextUniqueId() {\n return nextUniqueId++;\n}","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport { invariant } from '@react-dnd/invariant';\nexport function validateSourceContract(source) {\n invariant(typeof source.canDrag === 'function', 'Expected canDrag to be a function.');\n invariant(typeof source.beginDrag === 'function', 'Expected beginDrag to be a function.');\n invariant(typeof source.endDrag === 'function', 'Expected endDrag to be a function.');\n}\nexport function validateTargetContract(target) {\n invariant(typeof target.canDrop === 'function', 'Expected canDrop to be a function.');\n invariant(typeof target.hover === 'function', 'Expected hover to be a function.');\n invariant(typeof target.drop === 'function', 'Expected beginDrag to be a function.');\n}\nexport function validateType(type, allowArray) {\n if (allowArray && Array.isArray(type)) {\n type.forEach(function (t) {\n return validateType(t, false);\n });\n return;\n }\n\n invariant(typeof type === 'string' || _typeof(type) === 'symbol', allowArray ? 'Type can only be a string, a symbol, or an array of either.' : 'Type can only be a string or a symbol.');\n}","// Safari 6 and 6.1 for desktop, iPad, and iPhone are the only browsers that\n// have WebKitMutationObserver but not un-prefixed MutationObserver.\n// Must use `global` or `self` instead of `window` to work in both frames and web\n// workers. `global` is a provision of Browserify, Mr, Mrs, or Mop.\n/* globals self */ const scope = typeof global !== 'undefined' ? global : self;\nconst BrowserMutationObserver = scope.MutationObserver || scope.WebKitMutationObserver;\nexport function makeRequestCallFromTimer(callback) {\n return function requestCall() {\n // We dispatch a timeout with a specified delay of 0 for engines that\n // can reliably accommodate that request. This will usually be snapped\n // to a 4 milisecond delay, but once we're flushing, there's no delay\n // between events.\n const timeoutHandle = setTimeout(handleTimer, 0);\n // However, since this timer gets frequently dropped in Firefox\n // workers, we enlist an interval handle that will try to fire\n // an event 20 times per second until it succeeds.\n const intervalHandle = setInterval(handleTimer, 50);\n function handleTimer() {\n // Whichever timer succeeds will cancel both timers and\n // execute the callback.\n clearTimeout(timeoutHandle);\n clearInterval(intervalHandle);\n callback();\n }\n };\n}\n// To request a high priority event, we induce a mutation observer by toggling\n// the text of a text node between \"1\" and \"-1\".\nexport function makeRequestCallFromMutationObserver(callback) {\n let toggle = 1;\n const observer = new BrowserMutationObserver(callback);\n const node = document.createTextNode('');\n observer.observe(node, {\n characterData: true\n });\n return function requestCall() {\n toggle = -toggle;\n node.data = toggle;\n };\n}\nexport const makeRequestCall = typeof BrowserMutationObserver === 'function' ? // reliably everywhere they are implemented.\n// They are implemented in all modern browsers.\n//\n// - Android 4-4.3\n// - Chrome 26-34\n// - Firefox 14-29\n// - Internet Explorer 11\n// - iPad Safari 6-7.1\n// - iPhone Safari 7-7.1\n// - Safari 6-7\nmakeRequestCallFromMutationObserver : // task queue, are implemented in Internet Explorer 10, Safari 5.0-1, and Opera\n// 11-12, and in web workers in many engines.\n// Although message channels yield to any queued rendering and IO tasks, they\n// would be better than imposing the 4ms delay of timers.\n// However, they do not work reliably in Internet Explorer or Safari.\n// Internet Explorer 10 is the only browser that has setImmediate but does\n// not have MutationObservers.\n// Although setImmediate yields to the browser's renderer, it would be\n// preferrable to falling back to setTimeout since it does not have\n// the minimum 4ms penalty.\n// Unfortunately there appears to be a bug in Internet Explorer 10 Mobile (and\n// Desktop to a lesser extent) that renders both setImmediate and\n// MessageChannel useless for the purposes of ASAP.\n// https://github.com/kriskowal/q/issues/396\n// Timers are implemented universally.\n// We fall back to timers in workers in most engines, and in foreground\n// contexts in the following browsers.\n// However, note that even this simple case requires nuances to operate in a\n// broad spectrum of browsers.\n//\n// - Firefox 3-13\n// - Internet Explorer 6-9\n// - iPad Safari 4.3\n// - Lynx 2.8.7\nmakeRequestCallFromTimer;\n\n//# sourceMappingURL=makeRequestCall.mjs.map","// `call`, just like a function.\nexport class RawTask {\n call() {\n try {\n this.task && this.task();\n } catch (error) {\n this.onError(error);\n } finally{\n this.task = null;\n this.release(this);\n }\n }\n constructor(onError, release){\n this.onError = onError;\n this.release = release;\n this.task = null;\n }\n}\n\n//# sourceMappingURL=RawTask.mjs.map","import { AsapQueue } from './AsapQueue.mjs';\nimport { TaskFactory } from './TaskFactory.mjs';\nconst asapQueue = new AsapQueue();\nconst taskFactory = new TaskFactory(asapQueue.registerPendingError);\n/**\n * Calls a task as soon as possible after returning, in its own event, with priority\n * over other events like animation, reflow, and repaint. An error thrown from an\n * event will not interrupt, nor even substantially slow down the processing of\n * other events, but will be rather postponed to a lower priority event.\n * @param {{call}} task A callable object, typically a function that takes no\n * arguments.\n */ export function asap(task) {\n asapQueue.enqueueTask(taskFactory.create(task));\n}\n\n//# sourceMappingURL=asap.mjs.map","import { makeRequestCall, makeRequestCallFromTimer } from './makeRequestCall.mjs';\nexport class AsapQueue {\n // Use the fastest means possible to execute a task in its own turn, with\n // priority over other events including IO, animation, reflow, and redraw\n // events in browsers.\n //\n // An exception thrown by a task will permanently interrupt the processing of\n // subsequent tasks. The higher level `asap` function ensures that if an\n // exception is thrown by a task, that the task queue will continue flushing as\n // soon as possible, but if you use `rawAsap` directly, you are responsible to\n // either ensure that no exceptions are thrown from your task, or to manually\n // call `rawAsap.requestFlush` if an exception is thrown.\n enqueueTask(task) {\n const { queue: q , requestFlush } = this;\n if (!q.length) {\n requestFlush();\n this.flushing = true;\n }\n // Equivalent to push, but avoids a function call.\n q[q.length] = task;\n }\n constructor(){\n this.queue = [];\n // We queue errors to ensure they are thrown in right order (FIFO).\n // Array-as-queue is good enough here, since we are just dealing with exceptions.\n this.pendingErrors = [];\n // Once a flush has been requested, no further calls to `requestFlush` are\n // necessary until the next `flush` completes.\n // @ts-ignore\n this.flushing = false;\n // The position of the next task to execute in the task queue. This is\n // preserved between calls to `flush` so that it can be resumed if\n // a task throws an exception.\n this.index = 0;\n // If a task schedules additional tasks recursively, the task queue can grow\n // unbounded. To prevent memory exhaustion, the task queue will periodically\n // truncate already-completed tasks.\n this.capacity = 1024;\n // The flush function processes all tasks that have been scheduled with\n // `rawAsap` unless and until one of those tasks throws an exception.\n // If a task throws an exception, `flush` ensures that its state will remain\n // consistent and will resume where it left off when called again.\n // However, `flush` does not make any arrangements to be called again if an\n // exception is thrown.\n this.flush = ()=>{\n const { queue: q } = this;\n while(this.index < q.length){\n const currentIndex = this.index;\n // Advance the index before calling the task. This ensures that we will\n // begin flushing on the next task the task throws an error.\n this.index++;\n q[currentIndex].call();\n // Prevent leaking memory for long chains of recursive calls to `asap`.\n // If we call `asap` within tasks scheduled by `asap`, the queue will\n // grow, but to avoid an O(n) walk for every task we execute, we don't\n // shift tasks off the queue after they have been executed.\n // Instead, we periodically shift 1024 tasks off the queue.\n if (this.index > this.capacity) {\n // Manually shift all values starting at the index back to the\n // beginning of the queue.\n for(let scan = 0, newLength = q.length - this.index; scan < newLength; scan++){\n q[scan] = q[scan + this.index];\n }\n q.length -= this.index;\n this.index = 0;\n }\n }\n q.length = 0;\n this.index = 0;\n this.flushing = false;\n };\n // In a web browser, exceptions are not fatal. However, to avoid\n // slowing down the queue of pending tasks, we rethrow the error in a\n // lower priority turn.\n this.registerPendingError = (err)=>{\n this.pendingErrors.push(err);\n this.requestErrorThrow();\n };\n // `requestFlush` requests that the high priority event queue be flushed as\n // soon as possible.\n // This is useful to prevent an error thrown in a task from stalling the event\n // queue if the exception handled by Node.js’s\n // `process.on(\"uncaughtException\")` or by a domain.\n // `requestFlush` is implemented using a strategy based on data collected from\n // every available SauceLabs Selenium web driver worker at time of writing.\n // https://docs.google.com/spreadsheets/d/1mG-5UYGup5qxGdEMWkhP6BWCz053NUb2E1QoUTU16uA/edit#gid=783724593\n this.requestFlush = makeRequestCall(this.flush);\n this.requestErrorThrow = makeRequestCallFromTimer(()=>{\n // Throw first error\n if (this.pendingErrors.length) {\n throw this.pendingErrors.shift();\n }\n });\n }\n} // The message channel technique was discovered by Malte Ubl and was the\n // original foundation for this library.\n // http://www.nonblocking.io/2011/06/windownexttick.html\n // Safari 6.0.5 (at least) intermittently fails to create message ports on a\n // page's first load. Thankfully, this version of Safari supports\n // MutationObservers, so we don't need to fall back in that case.\n // function makeRequestCallFromMessageChannel(callback) {\n // var channel = new MessageChannel();\n // channel.port1.onmessage = callback;\n // return function requestCall() {\n // channel.port2.postMessage(0);\n // };\n // }\n // For reasons explained above, we are also unable to use `setImmediate`\n // under any circumstances.\n // Even if we were, there is another bug in Internet Explorer 10.\n // It is not sufficient to assign `setImmediate` to `requestFlush` because\n // `setImmediate` must be called *by name* and therefore must be wrapped in a\n // closure.\n // Never forget.\n // function makeRequestCallFromSetImmediate(callback) {\n // return function requestCall() {\n // setImmediate(callback);\n // };\n // }\n // Safari 6.0 has a problem where timers will get lost while the user is\n // scrolling. This problem does not impact ASAP because Safari 6.0 supports\n // mutation observers, so that implementation is used instead.\n // However, if we ever elect to use timers in Safari, the prevalent work-around\n // is to add a scroll event listener that calls for a flush.\n // `setTimeout` does not call the passed callback if the delay is less than\n // approximately 7 in web workers in Firefox 8 through 18, and sometimes not\n // even then.\n // This is for `asap.js` only.\n // Its name will be periodically randomized to break any code that depends on\n // // its existence.\n // rawAsap.makeRequestCallFromTimer = makeRequestCallFromTimer\n // ASAP was originally a nextTick shim included in Q. This was factored out\n // into this ASAP package. It was later adapted to RSVP which made further\n // amendments. These decisions, particularly to marginalize MessageChannel and\n // to capture the MutationObserver implementation in a closure, were integrated\n // back into ASAP proper.\n // https://github.com/tildeio/rsvp.js/blob/cddf7232546a9cf858524b75cde6f9edf72620a7/lib/rsvp/asap.js\n\n//# sourceMappingURL=AsapQueue.mjs.map","import { RawTask } from './RawTask.mjs';\nexport class TaskFactory {\n create(task) {\n const tasks = this.freeTasks;\n const t1 = tasks.length ? tasks.pop() : new RawTask(this.onError, (t)=>tasks[tasks.length] = t\n );\n t1.task = task;\n return t1;\n }\n constructor(onError){\n this.onError = onError;\n this.freeTasks = [];\n }\n}\n\n//# sourceMappingURL=TaskFactory.mjs.map","function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { if (typeof Symbol === \"undefined\" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport { invariant } from '@react-dnd/invariant';\nimport { addSource as _addSource, addTarget as _addTarget, removeSource as _removeSource, removeTarget as _removeTarget } from '../actions/registry';\nimport { getNextUniqueId } from '../utils/getNextUniqueId';\nimport { HandlerRole } from '../interfaces';\nimport { validateSourceContract, validateTargetContract, validateType } from '../contracts';\nimport { asap } from '@react-dnd/asap';\n\nfunction getNextHandlerId(role) {\n var id = getNextUniqueId().toString();\n\n switch (role) {\n case HandlerRole.SOURCE:\n return \"S\".concat(id);\n\n case HandlerRole.TARGET:\n return \"T\".concat(id);\n\n default:\n throw new Error(\"Unknown Handler Role: \".concat(role));\n }\n}\n\nfunction parseRoleFromHandlerId(handlerId) {\n switch (handlerId[0]) {\n case 'S':\n return HandlerRole.SOURCE;\n\n case 'T':\n return HandlerRole.TARGET;\n\n default:\n invariant(false, \"Cannot parse handler ID: \".concat(handlerId));\n }\n}\n\nfunction mapContainsValue(map, searchValue) {\n var entries = map.entries();\n var isDone = false;\n\n do {\n var _entries$next = entries.next(),\n done = _entries$next.done,\n _entries$next$value = _slicedToArray(_entries$next.value, 2),\n value = _entries$next$value[1];\n\n if (value === searchValue) {\n return true;\n }\n\n isDone = !!done;\n } while (!isDone);\n\n return false;\n}\n\nexport var HandlerRegistryImpl = /*#__PURE__*/function () {\n function HandlerRegistryImpl(store) {\n _classCallCheck(this, HandlerRegistryImpl);\n\n this.types = new Map();\n this.dragSources = new Map();\n this.dropTargets = new Map();\n this.pinnedSourceId = null;\n this.pinnedSource = null;\n this.store = store;\n }\n\n _createClass(HandlerRegistryImpl, [{\n key: \"addSource\",\n value: function addSource(type, source) {\n validateType(type);\n validateSourceContract(source);\n var sourceId = this.addHandler(HandlerRole.SOURCE, type, source);\n this.store.dispatch(_addSource(sourceId));\n return sourceId;\n }\n }, {\n key: \"addTarget\",\n value: function addTarget(type, target) {\n validateType(type, true);\n validateTargetContract(target);\n var targetId = this.addHandler(HandlerRole.TARGET, type, target);\n this.store.dispatch(_addTarget(targetId));\n return targetId;\n }\n }, {\n key: \"containsHandler\",\n value: function containsHandler(handler) {\n return mapContainsValue(this.dragSources, handler) || mapContainsValue(this.dropTargets, handler);\n }\n }, {\n key: \"getSource\",\n value: function getSource(sourceId) {\n var includePinned = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n invariant(this.isSourceId(sourceId), 'Expected a valid source ID.');\n var isPinned = includePinned && sourceId === this.pinnedSourceId;\n var source = isPinned ? this.pinnedSource : this.dragSources.get(sourceId);\n return source;\n }\n }, {\n key: \"getTarget\",\n value: function getTarget(targetId) {\n invariant(this.isTargetId(targetId), 'Expected a valid target ID.');\n return this.dropTargets.get(targetId);\n }\n }, {\n key: \"getSourceType\",\n value: function getSourceType(sourceId) {\n invariant(this.isSourceId(sourceId), 'Expected a valid source ID.');\n return this.types.get(sourceId);\n }\n }, {\n key: \"getTargetType\",\n value: function getTargetType(targetId) {\n invariant(this.isTargetId(targetId), 'Expected a valid target ID.');\n return this.types.get(targetId);\n }\n }, {\n key: \"isSourceId\",\n value: function isSourceId(handlerId) {\n var role = parseRoleFromHandlerId(handlerId);\n return role === HandlerRole.SOURCE;\n }\n }, {\n key: \"isTargetId\",\n value: function isTargetId(handlerId) {\n var role = parseRoleFromHandlerId(handlerId);\n return role === HandlerRole.TARGET;\n }\n }, {\n key: \"removeSource\",\n value: function removeSource(sourceId) {\n var _this = this;\n\n invariant(this.getSource(sourceId), 'Expected an existing source.');\n this.store.dispatch(_removeSource(sourceId));\n asap(function () {\n _this.dragSources.delete(sourceId);\n\n _this.types.delete(sourceId);\n });\n }\n }, {\n key: \"removeTarget\",\n value: function removeTarget(targetId) {\n invariant(this.getTarget(targetId), 'Expected an existing target.');\n this.store.dispatch(_removeTarget(targetId));\n this.dropTargets.delete(targetId);\n this.types.delete(targetId);\n }\n }, {\n key: \"pinSource\",\n value: function pinSource(sourceId) {\n var source = this.getSource(sourceId);\n invariant(source, 'Expected an existing source.');\n this.pinnedSourceId = sourceId;\n this.pinnedSource = source;\n }\n }, {\n key: \"unpinSource\",\n value: function unpinSource() {\n invariant(this.pinnedSource, 'No source is pinned at the time.');\n this.pinnedSourceId = null;\n this.pinnedSource = null;\n }\n }, {\n key: \"addHandler\",\n value: function addHandler(role, type, handler) {\n var id = getNextHandlerId(role);\n this.types.set(id, type);\n\n if (role === HandlerRole.SOURCE) {\n this.dragSources.set(id, handler);\n } else if (role === HandlerRole.TARGET) {\n this.dropTargets.set(id, handler);\n }\n\n return id;\n }\n }]);\n\n return HandlerRegistryImpl;\n}();","import { DragDropManagerImpl } from './classes/DragDropManagerImpl';\nimport { createStore } from 'redux';\nimport { reduce } from './reducers';\nimport { DragDropMonitorImpl } from './classes/DragDropMonitorImpl';\nimport { HandlerRegistryImpl } from './classes/HandlerRegistryImpl';\nexport function createDragDropManager(backendFactory) {\n var globalContext = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;\n var backendOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var debugMode = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n var store = makeStoreInstance(debugMode);\n var monitor = new DragDropMonitorImpl(store, new HandlerRegistryImpl(store));\n var manager = new DragDropManagerImpl(store, monitor);\n var backend = backendFactory(manager, globalContext, backendOptions);\n manager.receiveBackend(backend);\n return manager;\n}\n\nfunction makeStoreInstance(debugMode) {\n // TODO: if we ever make a react-native version of this,\n // we'll need to consider how to pull off dev-tooling\n var reduxDevTools = typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__;\n return createStore(reduce, debugMode && reduxDevTools && reduxDevTools({\n name: 'dnd-core',\n instanceId: 'dnd-core'\n }));\n}","var _excluded = [\"children\"];\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useEffect, memo } from 'react';\nimport { createDragDropManager } from 'dnd-core';\nimport { DndContext } from './DndContext';\nvar refCount = 0;\nvar INSTANCE_SYM = Symbol.for('__REACT_DND_CONTEXT_INSTANCE__');\n/**\n * A React component that provides the React-DnD context\n */\n\nexport var DndProvider = memo(function DndProvider(_ref) {\n var children = _ref.children,\n props = _objectWithoutProperties(_ref, _excluded);\n\n var _getDndContextValue = getDndContextValue(props),\n _getDndContextValue2 = _slicedToArray(_getDndContextValue, 2),\n manager = _getDndContextValue2[0],\n isGlobalInstance = _getDndContextValue2[1]; // memoized from props\n\n /**\n * If the global context was used to store the DND context\n * then where theres no more references to it we should\n * clean it up to avoid memory leaks\n */\n\n\n useEffect(function () {\n if (isGlobalInstance) {\n var context = getGlobalContext();\n ++refCount;\n return function () {\n if (--refCount === 0) {\n context[INSTANCE_SYM] = null;\n }\n };\n }\n }, []);\n return _jsx(DndContext.Provider, Object.assign({\n value: manager\n }, {\n children: children\n }), void 0);\n});\n\nfunction getDndContextValue(props) {\n if ('manager' in props) {\n var _manager = {\n dragDropManager: props.manager\n };\n return [_manager, false];\n }\n\n var manager = createSingletonDndContext(props.backend, props.context, props.options, props.debugMode);\n var isGlobalInstance = !props.context;\n return [manager, isGlobalInstance];\n}\n\nfunction createSingletonDndContext(backend) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getGlobalContext();\n var options = arguments.length > 2 ? arguments[2] : undefined;\n var debugMode = arguments.length > 3 ? arguments[3] : undefined;\n var ctx = context;\n\n if (!ctx[INSTANCE_SYM]) {\n ctx[INSTANCE_SYM] = {\n dragDropManager: createDragDropManager(backend, context, options, debugMode)\n };\n }\n\n return ctx[INSTANCE_SYM];\n}\n\nfunction getGlobalContext() {\n return typeof global !== 'undefined' ? global : window;\n}","import { t } from \"../i18n\";\nimport React, { useState, useEffect, useRef, useMemo } from \"react\";\nimport { DndProvider } from \"react-dnd\";\nimport { DndBackend } from \"./DndBackend\";\n\nimport Editor from \"../Editor\";\nimport Block from \"../Block\";\nimport BlockItem from \"./BlockItem\";\nimport {\n EditorContext,\n BlocksContext,\n EditorContextProps,\n BlocksContextProps,\n} from \"../Context\";\nimport AddButton from \"./AddButton\";\nimport { getBlocksByRange, isPassThroughNativeEvent } from \"../util\";\nimport { BlockEditorCommandEvent } from \"../CommandManager\";\n\ndeclare global {\n interface WindowEventMap {\n \"mt-block-editor-command\": BlockEditorCommandEvent;\n \"mt-block-editor-click-block\": CustomEvent;\n }\n}\n\ninterface AppProps {\n editor: Editor;\n}\n\nfunction arrayEquals(a: T[], b: T[]): boolean {\n if (a === b) {\n return true;\n }\n\n if (a.length !== b.length) {\n return false;\n }\n\n for (let i = 0, len = a.length; i < len; i++) {\n if (a[i] !== b[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nconst App: React.FC = ({ editor }: AppProps) => {\n const [_focusedIds, _setFocusedIds] = useState([]);\n const focusedIdsRef = useRef(_focusedIds);\n\n const editorContext = useMemo(\n () => ({\n editor: editor,\n setFocusedIds: (ids, opts?) => {\n const focusedIds = focusedIdsRef.current;\n if (\n focusedIds.length >= 2 &&\n ids.length === 1 &&\n focusedIds.includes(ids[0])\n ) {\n // do nothing\n return;\n }\n\n if (!opts?.forceUpdate && arrayEquals(focusedIds, ids)) {\n return;\n }\n\n focusedIdsRef.current = ids;\n _setFocusedIds(ids);\n },\n getFocusedIds: () => focusedIdsRef.current,\n }),\n []\n );\n const setFocusedIds = editorContext.setFocusedIds;\n\n const blocksContext = useMemo(\n () => ({\n panelBlockTypes: null,\n shortcutBlockTypes: null,\n addBlock: (b: Block, index: number | Block) => {\n if (index instanceof Block) {\n index = editor.blocks.indexOf(index) + 1;\n }\n editor.addBlock(editor, b, index);\n setFocusedIds([b.id]);\n },\n mergeBlock: (b: Block) => {\n const index = editor.blocks.indexOf(b);\n if (editor.mergeBlock(editor, b)) {\n setFocusedIds([editor.blocks[index - 1].id]);\n }\n },\n removeBlock: (b: Block) => {\n const index = editor.blocks.indexOf(b);\n editor.removeBlock(editor, b);\n if (index > 0) {\n setFocusedIds([editor.blocks[index - 1].id]);\n }\n },\n swapBlocks: (dragIndex: number, hoverIndex: number, scroll?: boolean) => {\n if (\n dragIndex === undefined ||\n hoverIndex === undefined ||\n !editor.blocks[dragIndex] ||\n !editor.blocks[hoverIndex]\n ) {\n return;\n }\n\n if (scroll) {\n const destEl = editor.blocks[hoverIndex].wrapperRef.current;\n if (!destEl) {\n return;\n }\n\n const rect = destEl.getBoundingClientRect();\n const scrollTop =\n window.pageYOffset || document.documentElement.scrollTop;\n const offsetTop = rect.height;\n\n window.scrollTo({\n top: scrollTop + (dragIndex > hoverIndex ? -offsetTop : offsetTop),\n behavior: \"smooth\",\n });\n }\n\n editor.swapBlocks(editor, dragIndex, hoverIndex);\n },\n }),\n []\n );\n\n useEffect(() => {\n const onWindowClick = (ev: Event): void => {\n if (\n document.querySelector(\".mt-be-overlay\") ||\n document.body.classList.contains(\"modal-open\")\n ) {\n return;\n }\n\n const editorEl = editor.editorElement;\n\n if (editorEl.querySelector(`[data-mt-block-editor-keep-focus=\"1\"]`)) {\n return;\n }\n\n let target = ev.target as HTMLElement;\n if (target.closest(\".mce-container, .modal\")) {\n return;\n }\n\n while (target.parentNode && target.parentNode !== target) {\n if (target === editorEl) {\n if (focusedIdsRef.current.length === 0) {\n setFocusedIds([\"editor\"]);\n }\n return;\n }\n target = target.parentNode as HTMLElement;\n }\n\n setFocusedIds([]);\n };\n\n const onWindowKeydown = (ev: KeyboardEvent): void => {\n const editorEl = editor.editorElement;\n const focusedIds = focusedIdsRef.current;\n\n if (focusedIds.length === 0) {\n return;\n }\n\n if (!(ev.ctrlKey || ev.metaKey || ev.altKey || ev.shiftKey)) {\n return;\n }\n\n // stay focused but not edit\n if (\n isPassThroughNativeEvent(ev) ||\n editorEl.querySelector(`[data-mt-block-editor-keep-focus=\"1\"]`)\n ) {\n return;\n }\n\n const key = ev.key;\n\n if (key === \"z\" && (ev.ctrlKey || ev.metaKey) && !ev.shiftKey) {\n ev.preventDefault();\n ev.stopPropagation();\n ev.stopImmediatePropagation();\n editor.editManager.undo({\n editor,\n getFocusedIds: () => focusedIds,\n setFocusedIds,\n });\n } else if (\n (key === \"z\" && (ev.ctrlKey || ev.metaKey) && ev.shiftKey) ||\n (key === \"y\" && (ev.ctrlKey || ev.metaKey))\n ) {\n ev.preventDefault();\n ev.stopPropagation();\n ev.stopImmediatePropagation();\n editor.editManager.redo({\n editor,\n getFocusedIds: () => focusedIds,\n setFocusedIds,\n });\n }\n };\n\n let startId = \"\";\n const onEditorMousedown = (ev: MouseEvent): void => {\n if (ev.target instanceof HTMLElement) {\n startId =\n ev.target.closest(\"[data-mt-block-editor-block-id]\")\n ?.dataset.mtBlockEditorBlockId || \"\";\n }\n };\n\n const onEditorMouseup = (ev: MouseEvent): void => {\n if (ev.target instanceof HTMLElement) {\n const endId =\n ev.target.closest(\"[data-mt-block-editor-block-id]\")\n ?.dataset.mtBlockEditorBlockId || \"\";\n if (startId && endId && startId !== endId) {\n setFocusedIds(\n getBlocksByRange(editor, [startId, endId]).map((b) => b.id)\n );\n\n ev.preventDefault();\n ev.stopPropagation();\n }\n }\n\n startId = \"\";\n };\n\n const onBlockEditorCommand = (ev: BlockEditorCommandEvent): void => {\n editor.commandManager.execute({\n ...ev.detail,\n event: ev,\n });\n };\n\n editor.editorElement.addEventListener(\"mousedown\", onEditorMousedown);\n editor.editorElement.addEventListener(\"mouseup\", onEditorMouseup);\n\n window.addEventListener(\"click\", onWindowClick, {\n capture: true,\n passive: true,\n });\n\n window.addEventListener(\"keydown\", onWindowKeydown);\n window.addEventListener(\"mt-block-editor-command\", onBlockEditorCommand);\n\n return () => {\n editor.editorElement.removeEventListener(\"mousedown\", onEditorMousedown);\n editor.editorElement.removeEventListener(\"mouseup\", onEditorMouseup);\n window.removeEventListener(\"click\", onWindowClick, {\n capture: true,\n });\n window.removeEventListener(\"keydown\", onWindowKeydown);\n window.removeEventListener(\n \"mt-block-editor-command\",\n onBlockEditorCommand\n );\n };\n }, []);\n\n return (\n \n \n \n
\n {editor.blocks.map((b, i) => {\n return (\n \n );\n })}\n {editor.opts.addButtons[\"bottom\"] && (\n
\n \n
\n )}\n
\n
\n
\n
\n );\n};\n\nexport default App;\n","import Block from \"./Block\";\n\nclass BlockFactory {\n public static allTypes: Array = [];\n\n public static registerType(t: typeof Block): void {\n this.allTypes.push(t);\n }\n\n public static deregisterType(t: typeof Block | string): void {\n this.allTypes = this.allTypes.filter((registered) =>\n typeof t === \"string\" ? registered.typeId === t : registered !== t\n );\n }\n\n public types(): Array {\n return BlockFactory.allTypes;\n }\n\n public selectableTypes(): Array {\n return BlockFactory.allTypes.filter((t) => t.selectable);\n }\n\n public lookupType(typeId: string): typeof Block {\n const t = BlockFactory.allTypes.find((t) => t.typeId === typeId);\n\n if (!t) {\n throw `Unknown typeId: ${typeId}`;\n }\n\n return t;\n }\n}\n\nexport default BlockFactory;\n","import Editor from \"./Editor\";\nimport Block from \"./Block\";\nimport { EditorContextProps } from \"./Context\";\n\nconst DEFAULT_LIMIT = 100;\nconst NO_GROUP = undefined;\n\nexport interface EditHistoryHandlers {\n id: symbol;\n merge?: (a: EditHistory, b: EditHistory) => EditHistory | undefined | null;\n undo: (history: EditHistory, props: EditorContextProps) => void;\n redo: (history: EditHistory, props: EditorContextProps) => void;\n}\n\nexport interface EditHistory {\n block: Block;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data: any;\n group?: number | undefined;\n handlers: EditHistoryHandlers;\n}\n\nclass EditManager {\n private editor: Editor | null = null;\n private limit = DEFAULT_LIMIT;\n private index = 0;\n private ignore = false;\n private histories: EditHistory[] = [];\n private group: number | undefined = NO_GROUP;\n\n public constructor(init: {\n editor: EditManager[\"editor\"];\n limit?: EditManager[\"limit\"];\n }) {\n Object.assign(this, init);\n }\n\n public unload(): void {\n this.editor = null;\n this.histories = [];\n }\n\n public canUndo(): boolean {\n return this.histories.length !== 0 && this.histories.length > this.index;\n }\n\n public canRedo(): boolean {\n return this.index !== 0;\n }\n\n public add(history: EditHistory): void {\n if (this.ignore) {\n return;\n }\n\n this._add(history);\n\n if (this.group === NO_GROUP) {\n this.emitChange();\n }\n }\n\n private _add(history: EditHistory): void {\n if (this.index !== 0) {\n this.histories.splice(-this.index, this.index);\n }\n this.index = 0;\n\n if (this.group !== NO_GROUP && !history.group) {\n history.group = this.group;\n }\n\n if (history.handlers.merge) {\n const last = this.histories[this.histories.length - 1];\n if (\n last &&\n last.group === history.group &&\n last.handlers.id === history.handlers.id\n ) {\n const merged = history.handlers.merge.call(undefined, last, history);\n if (merged) {\n this.histories[this.histories.length - 1] = merged;\n return;\n }\n }\n }\n\n this.histories.push(history);\n\n if (this.histories.length > this.limit) {\n const count = this.histories.length - this.limit;\n this.histories.splice(0, count);\n }\n }\n\n public undo(props: EditorContextProps, group?: number): void {\n const history = this.histories[this.histories.length - this.index - 1];\n if (!history || (group !== undefined && group !== history.group)) {\n if (group !== undefined) {\n this.emitChange();\n }\n return;\n }\n\n this.index++;\n\n this.ignore = true;\n history.handlers.undo.call(undefined, history, props);\n this.ignore = false;\n\n if (history.group === NO_GROUP) {\n this.emitChange();\n } else {\n this.undo(props, history.group);\n }\n }\n\n public redo(props: EditorContextProps, group?: number): void {\n const history = this.histories[this.histories.length - this.index];\n if (!history || (group !== undefined && group !== history.group)) {\n if (group !== undefined) {\n this.emitChange();\n }\n return;\n }\n\n this.index--;\n this.ignore = true;\n history.handlers.redo.call(undefined, history, props);\n this.ignore = false;\n\n if (history.group === NO_GROUP) {\n this.emitChange();\n } else {\n this.redo(props, history.group);\n }\n }\n\n public generateGroup(): number {\n return Math.round(Math.random() * 100000);\n }\n\n public beginGrouping(): void {\n this.group = this.generateGroup();\n }\n\n public endGrouping(): void {\n if (this.group === NO_GROUP) {\n return;\n }\n\n const last = this.histories[this.histories.length - 1];\n if (last && last.group === this.group) {\n this.emitChange();\n }\n\n this.group = NO_GROUP;\n }\n\n private emitChange(): void {\n if (this.editor) {\n this.editor.emit(\"change\", { editor: this.editor });\n }\n }\n}\n\nexport default EditManager;\n","import { EditHistoryHandlers } from \"../EditManager\";\nimport Block from \"../Block\";\n\nexport const add: EditHistoryHandlers = {\n id: Symbol(\"add\"),\n undo(hist, { editor, setFocusedIds }) {\n const parent = hist.data.parent || editor;\n const index = parent.blocks.indexOf(hist.block);\n editor.removeBlock(parent, hist.block);\n\n const nextFocusBlock =\n parent.blocks[Math.max(0, index - 1)] ||\n (parent instanceof Block ? parent : null);\n\n setFocusedIds([nextFocusBlock?.id ?? \"editor\"]);\n },\n redo(hist, { editor, setFocusedIds }) {\n const parent = hist.data.parent || editor;\n editor.addBlock(parent, hist.block, hist.data.index);\n setFocusedIds([hist.block.id]);\n\n // You need to force a re-render to see the block\n if (parent.blocks.length === 1) {\n editor.render();\n }\n },\n};\n\nexport const remove: EditHistoryHandlers = {\n id: Symbol(\"remove\"),\n undo(hist, { editor, setFocusedIds }) {\n editor.addBlock(hist.data.parent || editor, hist.block, hist.data.index);\n setFocusedIds([hist.block.id], { forceUpdate: true });\n },\n redo(hist, { editor, setFocusedIds }) {\n const parent = hist.data.parent || editor;\n const index = parent.blocks.indexOf(hist.block);\n editor.removeBlock(parent, hist.block);\n if (index > 0) {\n setFocusedIds([parent.blocks[index - 1].id]);\n }\n },\n};\n\nexport const swap: EditHistoryHandlers = {\n id: Symbol(\"swap\"),\n undo(hist, { editor }) {\n editor.swapBlocks(hist.data.parent || editor, hist.data.a, hist.data.b);\n },\n redo(hist, { editor }) {\n editor.swapBlocks(hist.data.parent || editor, hist.data.a, hist.data.b);\n },\n};\n","export const beforeRenderIframePreview = (data: {\n html: string;\n scheme: string;\n}): void => {\n const parser = new DOMParser();\n\n const doc = parser.parseFromString(data.html, \"text/html\");\n if (\n doc.body.children.length > 0 &&\n [...doc.body.children].every(\n (e) =>\n e instanceof HTMLIFrameElement &&\n /^https:\\/\\/www.youtube.com\\//.test(e.src)\n )\n ) {\n // YouTube iframe only\n data.scheme = \"srcdoc\";\n } else if (\n /^https:\\/\\/www.tiktok.com\\//.test(\n doc.body.querySelector(\"script\")?.src || \"\"\n )\n ) {\n // Include TikTok embed script\n data.scheme = \"data-wrap\";\n }\n};\n","import React, { ReactNode, useEffect, useState } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { CSSTransition } from \"react-transition-group\";\n\nconst OVERLAY_CLASS_NAME = \"mt-be-overlay\";\nconst PORTAL_STYLE = { position: \"relative\", zIndex: 1000 };\nexport const TRANSITION_TIMEOUT = 300;\n\ninterface OverlayProps {\n open: boolean;\n onClose?: () => void;\n children?: ReactNode;\n}\n\nconst Overlay: React.FC = ({\n open,\n onClose = () => null,\n children,\n}: OverlayProps) => {\n const [portal] = useState(() =>\n document.createElement(\"div\")\n );\n\n useEffect(() => {\n Object.assign(portal.style, PORTAL_STYLE);\n portal.classList.add(\"mt-block-editor\");\n document.body.appendChild(portal);\n return () => portal.remove();\n }, []);\n\n useEffect(() => {\n if (!open) {\n return;\n }\n\n function onKeydown(ev: KeyboardEvent): void {\n if (ev.key === \"Escape\") {\n onClose();\n }\n }\n\n document.addEventListener(\"keydown\", onKeydown);\n return () => document.removeEventListener(\"keydown\", onKeydown);\n }, [open]);\n\n return createPortal(\n \n document.body.classList.add(\"mt-block-editor-overlay-open\")\n }\n onExit={() =>\n document.body.classList.remove(\"mt-block-editor-overlay-open\")\n }\n classNames={OVERLAY_CLASS_NAME}\n unmountOnExit\n timeout={TRANSITION_TIMEOUT}\n >\n
{children}
\n ,\n portal\n );\n};\n\nexport default Overlay;\n","import { t } from \"../i18n\";\nimport React, {\n ReactNode,\n useRef,\n useEffect,\n createContext,\n useContext,\n} from \"react\";\nimport Overlay, { TRANSITION_TIMEOUT } from \"./Overlay\";\n\nexport interface DialogProps {\n children?: ReactNode;\n open: boolean;\n onClose?: () => void;\n id?: string;\n className?: string;\n}\ntype DialogContextProps = Pick;\n\nconst DialogContext = createContext({});\nexport const Dialog: React.FC = (props: DialogProps) => {\n const modalRef = useRef(null);\n const className = `mt-be-dialog ${props.className || \"\"}`;\n\n useEffect(() => {\n if (!props.open) {\n return;\n }\n\n const modalEl = modalRef.current;\n if (!modalEl) {\n return;\n }\n\n const focusEl = modalEl.querySelector(\n `[data-mt-block-editor-focus-default]`\n );\n if (!focusEl) {\n return;\n }\n\n setTimeout(() => {\n focusEl.focus();\n }, TRANSITION_TIMEOUT);\n }, [props.open]);\n\n return (\n \n \n
\n
{props.children}
\n
\n
\n
\n );\n};\n\nexport const DialogHeader: React.FC = (props: { children?: ReactNode }) => {\n const { onClose = () => null } = useContext(DialogContext);\n return (\n
\n {props.children}\n \n ×\n \n
\n );\n};\n\nexport const DialogBody: React.FC = (props: { children?: ReactNode }) => (\n
{props.children}
\n);\n\nexport const DialogFooter: React.FC = (props: { children?: ReactNode }) => (\n
{props.children}
\n);\n\nexport default Dialog;\n","import { t } from \"../i18n\";\nimport React, { useState, useRef } from \"react\";\nimport Block, { NewFromHtmlOptions, EditorOptions } from \"../Block\";\nimport { nl2br } from \"../util\";\nimport { blockProperty } from \"../decorator\";\nimport icon from \"../img/icon/image.svg\";\nimport iconLink from \"../img/icon/link.svg\";\nimport BlockSetupCommon from \"../Component/BlockSetupCommon\";\nimport BlockLabel from \"../Component/BlockLabel\";\nimport BlockToolbar from \"../Component/BlockToolbar\";\nimport BlockToolbarButton from \"../Component/BlockToolbarButton\";\nimport {\n Dialog,\n DialogHeader,\n DialogBody,\n DialogFooter,\n} from \"../Component/Dialog\";\nimport { useCommands } from \"../CommandManager\";\n\ninterface EditorProps {\n block: Image;\n}\n\nconst Html: React.FC = ({ block }: EditorProps) => {\n let img = {block.alt};\n if (block.linkUrl) {\n img = (\n \n {img}\n
\n );\n }\n\n return block.caption ? (\n
\n {img}\n
{nl2br(block.caption)}
\n
\n ) : (\n

{img}

\n );\n};\n\nconst Editor: React.FC = blockProperty(\n ({ block }: EditorProps) => {\n const [isLinkDialogOpen, setLinkDialogOpen] = useState(false);\n const formRef = useRef(null);\n\n useCommands(\n {\n block,\n commands: [\n {\n command: \"core-insertLink\",\n callback: () => {\n setLinkDialogOpen(true);\n },\n },\n ],\n },\n []\n );\n\n return (\n <>\n \n setLinkDialogOpen(true)}\n />\n \n setLinkDialogOpen(false)}\n >\n \n

{t(\"Insert Link\")}

\n
\n
\n \n \n \n \n \n\n \n {\n setLinkDialogOpen(false);\n }}\n >\n {t(\"Close\")}\n \n {\n const form = formRef.current;\n if (!form) {\n return;\n }\n\n const keys = [\"linkUrl\", \"linkTitle\", \"linkTarget\"] as const;\n keys.forEach((name) => {\n block[name] =\n form.querySelector(\n `[data-property-name=\"${name}\"]`\n )?.value || \"\";\n });\n\n setLinkDialogOpen(false);\n }}\n >\n {t(\"Save\")}\n \n \n \n \n \n \n \n \n \n \n \n \n );\n }\n);\n\nclass Image extends Block {\n public static typeId = \"core-image\";\n public static selectable = true;\n public static icon = icon;\n public static get label(): string {\n return t(\"Image\");\n }\n\n public url = \"\";\n public alt = \"\";\n public caption = \"\";\n public linkUrl = \"\";\n public linkTarget = \"_self\";\n public linkTitle = \"\";\n\n public constructor(init?: Partial) {\n super();\n if (init) {\n Object.assign(this, init);\n }\n }\n\n public editor({ focus, focusBlock }: EditorOptions): JSX.Element {\n return focus || focusBlock ? (\n \n ) : (\n this.html()\n );\n }\n\n public html(): JSX.Element {\n return ;\n }\n\n public static canNewFromFile(): boolean {\n return true;\n }\n\n public static async newFromFile({ file }: { file: File }): Promise {\n return new Image({\n url: URL.createObjectURL(file),\n });\n }\n\n public static async newFromHtml({\n html,\n meta,\n }: NewFromHtmlOptions): Promise {\n const domparser = new DOMParser();\n const doc = domparser.parseFromString(html, \"text/html\");\n\n return new Image(\n Object.assign(\n {\n url: (doc.querySelector(\"IMG\") as HTMLImageElement).src || \"\",\n className:\n (doc.querySelector(\"IMG\") as HTMLImageElement).className || \"\",\n alt: (doc.querySelector(\"IMG\") as HTMLImageElement).alt || \"\",\n caption:\n (doc.querySelector(\"FIGCAPTION\") &&\n (\n doc.querySelector(\"FIGCAPTION\") as HTMLElement\n ).innerHTML.replace(/]*>/g, \"\\n\")) ||\n \"\",\n },\n meta\n )\n );\n }\n}\n\nexport default Image;\n","import { t } from \"../i18n\";\nimport React from \"react\";\nimport Block, { NewFromHtmlOptions, EditorOptions } from \"../Block\";\nimport { sanitize } from \"../util\";\nimport { blockProperty } from \"../decorator\";\nimport icon from \"../img/icon/file.svg\";\nimport BlockSetupCommon from \"../Component/BlockSetupCommon\";\nimport BlockLabel from \"../Component/BlockLabel\";\n\ninterface HtmlProps {\n block: File;\n}\ninterface EditorProps extends EditorOptions {\n block: File;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst Editor: React.FC = blockProperty(\n ({ block }: EditorProps) => (\n
\n \n \n \n \n \n
\n )\n);\n\nconst Html: React.FC = ({ block }: HtmlProps) => (\n <>\n {block.text}\n \n);\n\nclass File extends Block {\n public static typeId = \"core-file\";\n public static selectable = true;\n public static icon = icon;\n public static get label(): string {\n return t(\"File\");\n }\n\n public text = \"\";\n public url = \"\";\n\n public constructor(init?: Partial) {\n super();\n if (init) {\n Object.assign(this, init);\n }\n }\n\n public editor({ focus }: EditorOptions): JSX.Element {\n return focus ? (\n \n ) : (\n
\n );\n }\n\n public html(): JSX.Element {\n return ;\n }\n\n public static async newFromHtml({\n html,\n meta,\n }: NewFromHtmlOptions): Promise {\n const domparser = new DOMParser();\n const doc = domparser.parseFromString(html, \"text/html\");\n\n return new File(\n Object.assign(\n {\n url: (doc.querySelector(\"A\") as HTMLAnchorElement).href || \"\",\n text: (doc.querySelector(\"A\") as HTMLAnchorElement).textContent || \"\",\n },\n meta\n )\n );\n }\n}\n\nexport default File;\n","import { t } from \"../../../i18n\";\nimport React, { useEffect, useMemo, CSSProperties } from \"react\";\nimport Block, { NewFromHtmlOptions, EditorOptions } from \"../../../Block\";\nimport {\n sanitize,\n getShadowDomSelectorSet,\n isPassThroughNativeEvent,\n} from \"../../../util\";\nimport type {\n Editor as TinyMCEEditor,\n TinyMCE,\n RawEditorOptions as TinyMCESettings,\n} from \"tinymce\";\nimport { useBlocksContext, useEditorContext } from \"../../../Context\";\nimport icon from \"../../../img/icon/table.svg\";\nimport EditorMode from \"../../../Component/EditorMode\";\nimport BlockToolbar from \"../../../Component/BlockToolbar\";\nimport BlockSetupCommon from \"../../../Component/BlockSetupCommon\";\nimport BlockLabel from \"../../../Component/BlockLabel\";\nimport BlockContentEditablePreview, {\n HasEditorStyle,\n} from \"../../../Component/BlockContentEditablePreview\";\nimport { editHandlers } from \"../../Text/tinymce/edit\";\nimport {\n installPlugins as installTinyMCEPlugins,\n commonSettings,\n getTinymceMajorVersion,\n} from \"../../Text/tinymce/tinymce\";\n\nimport {\n HasTinyMCE,\n tinymceFocus,\n removeTinyMCEFromBlock,\n adjustToolbar,\n} from \"../../Text/tinymce/util\";\n\ndeclare const tinymce: TinyMCE;\n\ninterface EditorProps extends Omit {\n block: Table;\n}\n\nconst Editor: React.FC = ({ block }: EditorProps) => {\n const blocksContext = useBlocksContext();\n const editorContext = useEditorContext();\n const { editor } = editorContext;\n const { addBlock } = useBlocksContext();\n\n const selectorSet = getShadowDomSelectorSet(block.id);\n const settings = useMemo(() => {\n const pluginsSettings: TinyMCESettings =\n getTinymceMajorVersion() >= 6\n ? {\n plugins: [\"table\", \"code\", \"media\", \"link\", \"MTBlockEditor\"],\n }\n : {\n plugins: \"table code paste media textcolor link MTBlockEditor\",\n };\n\n const _settings: TinyMCESettings = {\n ...commonSettings(editor, block, editorContext, blocksContext),\n ...pluginsSettings,\n toolbar:\n \"table | bold italic underline strikethrough forecolor backcolor removeformat | alignleft aligncenter alignright | link unlink | code\",\n init_instance_callback: (ed: TinyMCEEditor) => {\n block.tinymce = ed;\n\n ed.setContent(block.text);\n tinymceFocus(ed, selectorSet);\n\n const root = ed.dom.getRoot();\n\n // XXX: disable undo feature focefully\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ed.undoManager.add = (): any => {\n // XXX: improve performance\n if (getTinymceMajorVersion() >= 6) {\n ed.dispatch(\"Change\");\n } else {\n ed.fire(\"Change\");\n }\n return null;\n };\n\n let last = block.text;\n ed.on(\"MTBlockEditorEdit\", (ev) => {\n ed.dom.setHTML(ed.getBody(), ev.html);\n last = ev.html;\n });\n\n const addEdit = (): void => {\n const cur = ed.getContent();\n if (last === cur) {\n return;\n }\n\n editor.editManager.add({\n block,\n data: {\n last,\n },\n handlers: editHandlers,\n });\n\n last = cur;\n };\n\n ed.on(\"NodeChange Change\", (ev) => {\n if (root.childNodes.length <= 1) {\n addEdit();\n return;\n }\n\n if (ev.type === \"change\") {\n return;\n }\n\n let children = [...root.childNodes] as HTMLElement[];\n\n children = children\n .filter((c) => !c.classList.contains(\"mce-pastebin\"))\n .map((c) => {\n if (c.tagName === \"TABLE\") {\n return c;\n } else {\n const grandChildren: HTMLElement[] = [];\n\n [...c.querySelectorAll(\"TABLE\")].forEach((t) => {\n if ((t.parentElement as HTMLElement).closest(\"TABLE\")) {\n // nest\n return;\n }\n\n root.insertBefore(t, c);\n grandChildren.push(t as HTMLElement);\n });\n ed.dom.remove(c);\n\n return grandChildren;\n }\n })\n .flat() as HTMLElement[];\n\n if (children.length === 1) {\n addEdit();\n return;\n }\n\n children.shift();\n children.reverse();\n children.forEach((c) => {\n ed.dom.remove(c);\n });\n\n editor.editManager.beginGrouping();\n\n addEdit();\n\n children.forEach((c) => {\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n addBlock(new Table({ text: c.outerHTML }), block);\n });\n\n editor.editManager.endGrouping();\n });\n\n adjustToolbar(ed, block, editor.editorElement);\n },\n ...(editor.opts.block[\"core-table\"]?.[\"tinyMCESettings\"] || {}),\n };\n\n editor.emit(\"buildTinyMCESettings\", {\n editor,\n block,\n settings: _settings,\n });\n\n return _settings;\n }, []);\n\n useEffect(() => {\n installTinyMCEPlugins();\n tinymce.init(settings);\n\n return () => {\n removeTinyMCEFromBlock(block);\n };\n }, []);\n\n const isInSetupMode = editor.opts.mode === \"setup\";\n\n return (\n
\n \n \n
\n \n {\n if (isPassThroughNativeEvent(ev.nativeEvent)) {\n return;\n }\n\n ev.preventDefault();\n }}\n >\n
\n );\n};\n\nclass Table extends Block implements HasTinyMCE, HasEditorStyle {\n public static typeId = \"core-table\";\n public static selectable = true;\n public static icon = icon;\n public static get label(): string {\n return t(\"Table\");\n }\n\n public text = \"\";\n public tinymce: TinyMCEEditor | null = null;\n public editorStyle: CSSProperties = {};\n\n public constructor(init?: Partial
) {\n super();\n if (init) {\n Object.assign(this, init);\n }\n }\n\n public focusEditor(): void {\n if (this.tinymce) {\n this.tinymce.focus(false);\n }\n }\n\n public tinymceId(): string {\n return `textarea-${this.id}`;\n }\n\n public editor({ focus, focusBlock }: EditorOptions): JSX.Element {\n if (focus) {\n return ;\n }\n\n if (focusBlock || this.htmlString()) {\n const preview = (\n \n );\n return (\n <>\n \n {preview}\n \n {preview}\n \n );\n } else {\n return this.placeholder();\n }\n }\n\n public html(): string {\n if (this.tinymce) {\n try {\n return this.tinymce.getContent();\n } catch (e) {\n console.log(e);\n }\n }\n return this.text;\n }\n\n public static async newFromHtml({\n html,\n meta,\n }: NewFromHtmlOptions): Promise {\n return new Table(Object.assign({ text: html }, meta));\n }\n}\n\nexport default Table;\n","import { t } from \"../../../i18n\";\nimport React, { useEffect, useRef, useMemo, CSSProperties } from \"react\";\nimport Block, { NewFromHtmlOptions, EditorOptions } from \"../../../Block\";\nimport type EditorManager from \"@movabletype/mt-rich-text-editor\";\nimport type {\n Editor as MTRichTextEditorEditor,\n EditorCreateOptions,\n} from \"@movabletype/mt-rich-text-editor\";\n\nimport {\n sanitize,\n getShadowDomSelectorSet,\n isPassThroughNativeEvent,\n} from \"../../../util\";\nimport { useBlocksContext, useEditorContext } from \"../../../Context\";\nimport icon from \"../../../img/icon/table.svg\";\nimport EditorMode from \"../../../Component/EditorMode\";\nimport BlockToolbar from \"../../../Component/BlockToolbar\";\nimport BlockSetupCommon from \"../../../Component/BlockSetupCommon\";\nimport BlockLabel from \"../../../Component/BlockLabel\";\nimport BlockContentEditablePreview, {\n HasEditorStyle,\n} from \"../../../Component/BlockContentEditablePreview\";\nimport { editHandlers } from \"../../Text/mt-rich-text-editor/edit\";\nimport { commonSettings } from \"../../Text/mt-rich-text-editor/common\";\n\nimport {\n HasMTRichTextEditor,\n mtRichTextEditorFocus,\n removeMTRichTextEditorFromBlock,\n adjustToolbar,\n insertCommandPlaceholder,\n} from \"../../Text/mt-rich-text-editor/util\";\n\ndeclare const MTRichTextEditor: typeof EditorManager;\n\ninterface EditorProps extends Omit {\n block: Table;\n}\n\nconst Editor: React.FC = ({ block }: EditorProps) => {\n const blocksContext = useBlocksContext();\n const editorContext = useEditorContext();\n const { editor } = editorContext;\n const { addBlock } = useBlocksContext();\n\n const selectorSet = getShadowDomSelectorSet(block.id);\n\n const toolbar = useRef(null);\n const settings: EditorCreateOptions = useMemo(() => {\n const _settings: EditorCreateOptions = {\n ...commonSettings(editor, block),\n toolbar: [\n [\n [\n [\"table\"],\n [\n \"bold\",\n \"italic\",\n \"underline\",\n \"strike\",\n \"foregroundColor\",\n \"backgroundColor\",\n \"removeFormat\",\n ],\n [\"alignLeft\", \"alignCenter\", \"alignRight\"],\n [\"link\", \"unlink\"],\n [\"source\"],\n ],\n ],\n ],\n ...(editor.opts.block[\"core-table\"]?.[\"mtRichTextEditorSettings\"] || {}),\n };\n\n editor.emit(\"buildMTRichTextEditorSettings\", {\n editor,\n block,\n settings: _settings,\n });\n\n insertCommandPlaceholder(_settings);\n\n return _settings;\n }, []);\n\n useEffect(() => {\n const toolbarContainer = document.createElement(\"div\");\n toolbar.current?.appendChild(toolbarContainer);\n settings.toolbarContainer = toolbarContainer;\n MTRichTextEditor.create(settings).then((ed) => {\n block.mtRichTextEditor = ed;\n ed.setContent(block.text);\n mtRichTextEditorFocus(ed, selectorSet);\n adjustToolbar(block, editor.editorElement);\n\n let last = block.text;\n const onUndo = (html: string): void => {\n last = html;\n };\n const addEdit = (): void => {\n const cur = ed.getContent();\n if (last === cur) {\n return;\n }\n\n editor.editManager.add({\n block,\n data: {\n last,\n onUndo,\n },\n handlers: editHandlers,\n });\n\n last = cur;\n };\n\n const root = ed.tiptap.view.dom;\n ed.tiptap.on(\"update\", () => {\n let children = [...root.children];\n\n if (children.length <= 1) {\n addEdit();\n return;\n }\n\n children = children\n .map((c) => {\n if (c.tagName === \"TABLE\") {\n return c;\n } else {\n const grandChildren: HTMLElement[] = [];\n\n [...c.querySelectorAll(\"TABLE\")].forEach((t) => {\n if ((t.parentElement as HTMLElement).closest(\"TABLE\")) {\n // nest\n return;\n }\n\n root.insertBefore(t, c);\n grandChildren.push(t as HTMLElement);\n });\n // ed.dom.remove(c);\n\n return grandChildren;\n }\n })\n .flat() as HTMLElement[];\n\n if (children.length === 1) {\n addEdit();\n return;\n }\n\n const firstChild = children.shift();\n ed.tiptap.commands.setContent(firstChild!.outerHTML);\n\n editor.editManager.beginGrouping();\n\n addEdit();\n\n children.forEach((c) => {\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n addBlock(new Table({ text: c.outerHTML }), block);\n });\n\n editor.editManager.endGrouping();\n });\n });\n\n return () => {\n removeMTRichTextEditorFromBlock(block);\n };\n }, []);\n\n const isInSetupMode = editor.opts.mode === \"setup\";\n\n return (\n
\n \n \n
\n \n {\n if (isPassThroughNativeEvent(ev.nativeEvent)) {\n return;\n }\n\n ev.preventDefault();\n }}\n ref={toolbar}\n >\n \n );\n};\n\nclass Table extends Block implements HasMTRichTextEditor, HasEditorStyle {\n public static typeId = \"core-table\";\n public static selectable = true;\n public static icon = icon;\n public static get label(): string {\n return t(\"Table\");\n }\n\n public text = \"\";\n public mtRichTextEditor: MTRichTextEditorEditor | null = null;\n public editorStyle: CSSProperties = {};\n\n public constructor(init?: Partial
) {\n super();\n if (init) {\n Object.assign(this, init);\n }\n }\n\n public focusEditor(): void {\n if (this.mtRichTextEditor) {\n this.mtRichTextEditor.focus();\n }\n }\n\n public mtRichTextEditorId(): string {\n return `textarea-${this.id}`;\n }\n\n public editor({ focus, focusBlock }: EditorOptions): JSX.Element {\n if (focus) {\n return ;\n }\n\n if (focusBlock || this.htmlString()) {\n const preview = (\n \n );\n return (\n <>\n \n {preview}\n \n {preview}\n \n );\n } else {\n return this.placeholder();\n }\n }\n\n public html(): string {\n if (this.mtRichTextEditor) {\n try {\n return this.mtRichTextEditor.getContent();\n } catch (e) {\n console.log(e);\n }\n }\n return this.text;\n }\n\n public static async newFromHtml({\n html,\n meta,\n }: NewFromHtmlOptions): Promise {\n return new Table(Object.assign({ text: html }, meta));\n }\n}\n\nexport default Table;\n","import TableForTinyMCE from \"./tinymce/Table\";\nimport TableForMTRichTextEditor from \"./mt-rich-text-editor/Table\";\n\nconst Table =\n \"MTRichTextEditor\" in globalThis ? TableForMTRichTextEditor : TableForTinyMCE;\n\nexport default Table;\n","import { t } from \"../i18n\";\nimport React from \"react\";\nimport Block from \"../Block\";\nimport icon from \"../img/icon/horizontalrule.svg\";\n\nconst Editor: React.FC = () => {\n return
;\n};\n\nclass Horizontalrule extends Block {\n public static typeId = \"core-horizontalrule\";\n public static selectable = true;\n public static icon = icon;\n public static get label(): string {\n return t(\"Horizontal Rule\");\n }\n\n public editor(): JSX.Element {\n return ;\n }\n\n public html(): JSX.Element {\n return
;\n }\n\n public static async newFromHtml(): Promise {\n return new Horizontalrule();\n }\n}\n\nexport default Horizontalrule;\n","import { t } from \"../i18n\";\nimport React from \"react\";\nimport Block, { NewFromHtmlOptions, EditorOptions } from \"../Block\";\nimport { blockProperty } from \"../decorator\";\nimport BlockIframePreview from \"../Component/BlockIframePreview\";\nimport icon from \"../img/icon/html.svg\";\nimport BlockSetupCommon from \"../Component/BlockSetupCommon\";\nimport BlockLabel from \"../Component/BlockLabel\";\n\ninterface EditorProps {\n block: Html;\n}\n\nconst Editor: React.FC = blockProperty(\n ({ block }: EditorProps) => (\n
\n \n \n \n \n
\n )\n);\n\nclass Html extends Block {\n public static typeId = \"core-html\";\n public static selectable = true;\n public static icon = icon;\n public static get label(): string {\n return t(\"HTML\");\n }\n\n public text = \"\";\n\n public constructor(init?: Partial) {\n super();\n if (init) {\n Object.assign(this, init);\n }\n }\n\n public editor({ focus, focusBlock }: EditorOptions): JSX.Element {\n return focus || focusBlock ? (\n \n ) : (\n \n );\n }\n\n public html(): string {\n return this.text;\n }\n\n public static async newFromHtml({\n html,\n meta,\n }: NewFromHtmlOptions): Promise {\n return new Html(\n Object.assign(\n {\n text: html,\n },\n meta\n )\n );\n }\n}\n\nexport default Html;\n","import BlockFactory from \"./BlockFactory\";\n\nimport Text from \"./Block/Text\";\nimport Image from \"./Block/Image\";\nimport File from \"./Block/File\";\nimport Table from \"./Block/Table\";\nimport Horizontalrule from \"./Block/Horizontalrule\";\nimport Html from \"./Block/Html\";\nimport Columns from \"./Block/Columns\";\nimport Column from \"./Block/Column\";\n\nBlockFactory.registerType(Text);\nBlockFactory.registerType(Image);\nBlockFactory.registerType(File);\nBlockFactory.registerType(Table);\nBlockFactory.registerType(Horizontalrule);\nBlockFactory.registerType(Html);\nBlockFactory.registerType(Columns);\nBlockFactory.registerType(Column);\n","import { tinymceFocus } from \"./tinymce/util\";\nimport { mtRichTextEditorFocus } from \"./mt-rich-text-editor/util\";\n\nexport const focus =\n \"MTRichTextEditor\" in globalThis ? mtRichTextEditorFocus : tinymceFocus;\n","import { t } from \"../i18n\";\nimport icon from \"../img/copy.svg\";\nimport type { Command } from \"../CommandManager\";\nimport { focus } from \"../Block/Text/util\";\nimport Text from \"../Block/Text\";\nimport Table from \"../Block/Table\";\n\nconst isTextSelected = (): boolean => {\n // Some content is selected in the HTMLElement or Text.\n // In Firefox, even if text in HTMLInputElement is selected, the value cannot be retrieved.\n const selection = window.getSelection();\n if (selection && (!selection.isCollapsed || selection.toString() !== \"\")) {\n return true;\n }\n\n // In Firefox, look for the selected text in document.activeElement.\n const element = document.activeElement;\n if (\n (element instanceof HTMLInputElement ||\n element instanceof HTMLTextAreaElement) &&\n element.selectionStart !== element.selectionEnd\n ) {\n return true;\n }\n\n return false;\n};\n\nconst isClipboardAPIAvailable: () => boolean = () =>\n typeof navigator.clipboard?.write === \"function\" ||\n typeof navigator.clipboard?.writeText === \"function\";\n\nconst command: Command = {\n get label() {\n return t(\"Copy\");\n },\n icon,\n shortcut: \"cmd+c\",\n command: \"core-copyBlock\",\n condition: isClipboardAPIAvailable,\n callback: async ({ blocks, editorContext: { editor }, event }) => {\n if (!isClipboardAPIAvailable()) {\n return;\n }\n\n if (isTextSelected()) {\n // Prefer browser default behavior\n return;\n }\n\n if (blocks.length === 0) {\n return;\n }\n\n event.preventDefault();\n\n if (blocks.length === 1) {\n const block = blocks[0];\n block.wrapperRef.current?.classList.add(\"mt-be-focus\");\n setTimeout(() => {\n block.wrapperRef.current?.classList.remove(\"mt-be-focus\");\n }, 100);\n if (block instanceof Text || block instanceof Table) {\n const editor =\n \"mtRichTextEditor\" in block ? block.mtRichTextEditor : block.tinymce;\n if (editor) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n focus(editor as any, null);\n }\n }\n }\n\n let data = (\n await Promise.all(\n blocks.map((block) => block.toClipboardItem({ editor }))\n )\n ).reduce((acc, item) => {\n if (item instanceof Array) {\n acc ||= [];\n } else {\n acc ||= \"\";\n }\n\n if (acc instanceof Array && item instanceof Array) {\n return acc.concat(item);\n } else if (typeof acc === \"string\" && typeof item === \"string\") {\n return acc + item;\n }\n }, undefined);\n\n if (typeof data === \"string\" && typeof ClipboardItem === \"function\") {\n const htmlBlob = new Blob([data], { type: \"text/html\" });\n const plainBlob = new Blob([data], { type: \"text/plain\" });\n data = [\n new ClipboardItem({\n \"text/html\": htmlBlob,\n \"text/plain\": plainBlob,\n }),\n ];\n }\n\n if (data instanceof Array) {\n navigator.clipboard.write(data);\n } else if (typeof data === \"string\") {\n navigator.clipboard.writeText(data);\n }\n },\n};\n\nexport default command;\n","import { t } from \"../i18n\";\nimport icon from \"../img/duplicate.svg\";\nimport type { Command } from \"../CommandManager\";\nimport { parseContent, preParseContent, ParserContext } from \"../util\";\n\nconst command: Command = {\n get label() {\n return t(\"Duplicate\");\n },\n icon,\n shortcut: \"cmd+d\",\n command: \"core-duplicateBlock\",\n callback: async ({\n blocks,\n editorContext: { editor, setFocusedIds },\n blocksContext: { addBlock },\n event,\n }) => {\n if (blocks.length === 0) {\n return;\n }\n\n event?.preventDefault();\n\n const html = (\n await Promise.all(\n blocks.map((block) => block.serialize({ editor, external: true }))\n )\n ).join(\"\");\n\n const newBlocks = await parseContent(\n preParseContent(html),\n editor.factory,\n new ParserContext()\n );\n\n editor.editManager.beginGrouping();\n for (const newBlock of newBlocks.reverse()) {\n addBlock(newBlock, blocks[blocks.length - 1]);\n }\n editor.editManager.endGrouping();\n setFocusedIds([newBlocks[0].id]);\n\n editor.render();\n },\n};\n\nexport default command;\n","import { t } from \"../i18n\";\nimport { isTouchDevice } from \"../util\";\nimport icon from \"../img/remove.svg\";\nimport type { Command } from \"../CommandManager\";\n\nconst command: Command = {\n get label() {\n return t(\"Delete\");\n },\n icon,\n command: \"core-deleteBlock\",\n callback: ({ blocks, editorContext: { editor }, event }) => {\n event.preventDefault();\n\n if (isTouchDevice()) {\n if (!window.confirm(t(\"Are you sure you want to remove the block?\"))) {\n return;\n }\n }\n\n editor.editManager.beginGrouping();\n blocks.forEach((block) => editor.removeBlock(editor, block));\n editor.editManager.endGrouping();\n\n editor.render();\n },\n};\n\nexport default command;\n","import type { Command } from \"../CommandManager\";\n\nconst command: Command = {\n shortcut: \"cmd+k\",\n command: \"core-insertLink\",\n callback: ({\n blocks,\n editorContext: {\n editor: { commandManager },\n },\n event,\n }) => {\n event?.preventDefault();\n\n commandManager.emit(blocks, \"core-insertLink\");\n },\n};\n\nexport default command;\n","import EventEmitter from \"eventemitter3\";\nimport React from \"react\";\nimport { render } from \"react-dom\";\nimport { InitOptions as InitOptionsI18n } from \"i18next\";\n\nimport resetCss from \"./reset.css?raw\";\nimport editorContentCss from \"./editor-content.css?raw\";\nimport {\n getElementById,\n preParseContent,\n parseContent,\n escapeSingleQuoteAttribute,\n ParserContext,\n} from \"./util\";\nimport Block, { HasBlocks, DEFAULT_KEYS_FOR_SETUP } from \"./Block\";\nimport App from \"./Component/App\";\nimport BlockFactory from \"./BlockFactory\";\nimport EditManager from \"./EditManager\";\nimport CommandManager, { Command } from \"./CommandManager\";\nimport {\n add as editHandlersAdd,\n remove as editHandlersRemove,\n swap as editHandlersSwap,\n} from \"./Editor/edit\";\nimport { beforeRenderIframePreview } from \"./event/default\";\n\nimport \"./import-default-blocks\";\nimport \"./import-default-commands\";\n\nexport enum StylesheetType {\n url,\n css,\n}\n\ninterface Stylesheet {\n type: StylesheetType;\n data: string;\n}\n\ninterface Metadata {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any;\n}\n\nexport interface EditorOptions {\n id: string;\n mode: string;\n stylesheets: Array;\n rootClassName?: string;\n rootAttributes?: Record;\n panelBlockTypes?: string[];\n shortcutBlockTypes?: string[];\n addButtons: Metadata;\n editManager?: Partial;\n block: Metadata;\n i18n: InitOptionsI18n;\n}\n\ninterface MetadataMapData {\n id: string;\n blockIds: Set;\n}\n\nexport class Editor extends EventEmitter implements HasBlocks {\n public id: string;\n public opts: EditorOptions;\n public factory: BlockFactory;\n public editManager: EditManager;\n public commandManager: CommandManager;\n public blocks: Block[] = [];\n public stylesheets: Stylesheet[] = [];\n public editorElement: HTMLElement;\n\n private inputElement: HTMLInputElement;\n private metadataMap: Map = new Map<\n string,\n MetadataMapData\n >();\n private metadataMapSequence = 1;\n private keyboardShortcutCache: Record = {};\n private initialized = false;\n\n public constructor(opts: EditorOptions) {\n super();\n\n this.id = opts.id;\n this.opts = opts;\n opts.block = opts.block || {};\n opts.i18n = opts.i18n || {};\n opts.addButtons = opts.addButtons || { bottom: true };\n opts.rootClassName = opts.rootClassName || \"\";\n opts.rootAttributes = opts.rootAttributes || {};\n\n this.factory = new BlockFactory();\n this.editManager = new EditManager(\n Object.assign({ editor: this }, opts.editManager || {})\n );\n this.commandManager = new CommandManager({ editor: this });\n\n this.inputElement = getElementById(this.id) as HTMLInputElement;\n this.inputElement.style.display = \"none\";\n if (!this.inputElement.parentNode) {\n throw \"error\";\n }\n\n this.editorElement = document.createElement(\"div\");\n this.editorElement.setAttribute(\"data-mt-be-id\", this.id);\n this.editorElement.classList.add(\"mt-block-editor\");\n\n this.inputElement.parentNode.insertBefore(\n this.editorElement,\n this.inputElement\n );\n\n this.initDefaultEventHandlers();\n\n setTimeout(async () => {\n this.keyboardShortcutCache = await this.buildKeyboardShortcutCache();\n this.stylesheets = await Promise.all(this.buildStylesheets());\n const blocks = await parseContent(\n preParseContent(this.inputElement.value),\n this.factory,\n new ParserContext()\n );\n this.blocks = blocks;\n this.emit(\"initializeBlocks\", { editor: this, blocks });\n this.initialized = true;\n\n this.render();\n }, 0);\n }\n\n private initDefaultEventHandlers(): void {\n this.on(\"beforeRenderIframePreview\", beforeRenderIframePreview);\n }\n\n public selectableTypes(typeIds: string[]): Array {\n const types = this.factory.selectableTypes();\n return typeIds\n .map((typeId) => types.find((t) => t.typeId === typeId))\n .filter((t) => t) as Array;\n }\n\n public panelTypes(): Array {\n return this.opts.panelBlockTypes\n ? this.selectableTypes(this.opts.panelBlockTypes)\n : this.factory.selectableTypes();\n }\n\n public shortcutTypes(): Array {\n return this.opts.shortcutBlockTypes\n ? this.selectableTypes(this.opts.shortcutBlockTypes)\n : [];\n }\n\n public async buildKeyboardShortcutCache(): Promise> {\n const cache: Record = {};\n for (const command of await this.commandManager.commands()) {\n if (command.shortcut) {\n cache[command.shortcut] = command;\n }\n }\n return cache;\n }\n\n public keyboardShortcutMap(): Record {\n return this.keyboardShortcutCache;\n }\n\n public addBlock(parent: HasBlocks, block: Block, index: number): void {\n const blocks = parent.blocks;\n\n blocks.splice(index, 0, block);\n\n // XXX: Skip render by default\n // this.render();\n\n this.editManager.add({\n block: block,\n data: {\n parent: parent instanceof Editor ? null : parent,\n index,\n },\n handlers: editHandlersAdd,\n });\n\n this.emit(\"changeBlocks\", {\n editor: this,\n blocks: blocks,\n });\n }\n\n public mergeBlock(parent: HasBlocks, block: Block): boolean {\n const blocks = parent.blocks;\n\n const index = blocks.indexOf(block);\n if (index === -1) {\n return false;\n }\n const before = blocks[index - 1];\n if (!before) {\n return false;\n }\n if (!before.canMerge(block)) {\n return false;\n }\n\n this.editManager.beginGrouping();\n\n this.editManager.add(before.merge(block));\n this.removeBlock(parent, block);\n\n this.editManager.endGrouping();\n\n return true;\n }\n\n public removeBlock(parent: HasBlocks, block: Block): void {\n const blocks = parent.blocks;\n\n this.emit(\"removeBlock\", {\n editor: this,\n blocks,\n block,\n });\n\n const index = blocks.indexOf(block);\n if (index === -1) {\n return;\n }\n\n blocks.splice(index, 1);\n this.render();\n\n this.editManager.add({\n block: block,\n data: {\n parent: parent instanceof Editor ? null : parent,\n index,\n },\n handlers: editHandlersRemove,\n });\n\n this.emit(\"changeBlocks\", {\n editor: this,\n blocks,\n });\n }\n\n public swapBlocks(parent: HasBlocks, a: number, b: number): void {\n const blocks = parent.blocks;\n\n [blocks[a], blocks[b]] = [blocks[b], blocks[a]];\n this.render();\n\n this.editManager.add({\n block: blocks[a],\n data: {\n parent: parent instanceof Editor ? null : parent,\n a,\n b,\n },\n handlers: editHandlersSwap,\n });\n\n this.emit(\"changeBlocks\", {\n editor: this,\n blocks,\n });\n }\n\n public async serialize(): Promise {\n if (!this.initialized) {\n // should not update textarea value before initialization\n return;\n }\n\n const blocks = this.blocks.concat();\n this.emit(\"serialize\", {\n editor: this,\n blocks,\n });\n\n const values = await Promise.all(\n blocks.map((b) => b.serialize({ editor: this, external: false }))\n );\n\n const metadataReverseMap: Metadata = {};\n this.metadataMap.forEach(({ id }, v) => {\n metadataReverseMap[id] = JSON.parse(v);\n });\n\n this.inputElement.value =\n (this.metadataMap.size > 0\n ? ``\n : \"\") + values.join(\"\");\n }\n\n private getMetadataMapIndexes(\n blockId: string,\n stringArray: string[]\n ): string[] {\n const targetMap: Record = {};\n stringArray.forEach((str) => {\n targetMap[str] = this.metadataMap.get(str);\n });\n\n const reusableIds = [];\n for (const [k, data] of this.metadataMap) {\n if (targetMap[k]) {\n continue;\n }\n\n if (data.blockIds.has(blockId)) {\n if (data.blockIds.size === 1) {\n this.metadataMap.delete(k);\n reusableIds.push(data.id);\n } else {\n data.blockIds.delete(blockId);\n }\n }\n }\n\n for (const str of Object.keys(targetMap)) {\n const data = (targetMap[str] ||= {\n id: reusableIds.shift() || (this.metadataMapSequence++).toString(36),\n blockIds: new Set(),\n });\n\n data.blockIds.add(blockId);\n if (!this.metadataMap.has(str)) {\n this.metadataMap.set(str, data);\n }\n }\n\n return Object.values(targetMap)\n .filter((td): td is MetadataMapData => !!td)\n .map((td) => td.id);\n }\n\n public serializeMeta(block: Block, external: boolean): string | null {\n const meta = block.metadata();\n if (!meta) {\n return null;\n }\n\n if (external) {\n return JSON.stringify(meta);\n }\n\n const metaSetup: Metadata = {};\n DEFAULT_KEYS_FOR_SETUP.concat(block.keysForSetup()).forEach((k) => {\n if (k in meta) {\n metaSetup[k] = meta[k];\n Reflect.deleteProperty(meta, k);\n }\n });\n\n const metaStrings = [metaSetup, meta]\n .map((m) => (Object.keys(m).length > 0 ? JSON.stringify(m) : null))\n .filter((s): s is string => !!s);\n\n return this.getMetadataMapIndexes(block.id, metaStrings).join(\",\");\n }\n\n public unload(): void {\n this.emit(\"beforeUnload\", {\n editor: this,\n });\n this.editManager.unload();\n this.editorElement.remove();\n this.inputElement.style.display = \"\";\n this.emit(\"unload\", {\n editor: this,\n });\n }\n\n public render(): void {\n render(React.createElement(App, { editor: this }), this.editorElement);\n }\n\n private buildStylesheets(): Array> {\n return [\n {\n type: StylesheetType.css,\n data: resetCss + editorContentCss,\n },\n ...this.opts.stylesheets\n .filter((s) => s)\n .map(async (s) => {\n if (/^blob:/.test(s)) {\n const res = await fetch(s);\n return {\n type: StylesheetType.css,\n data: await res.text(),\n };\n } else if (/^https?:/.test(s)) {\n return {\n type: StylesheetType.url,\n data: s,\n };\n } else {\n return {\n type: StylesheetType.css,\n data: s,\n };\n }\n }),\n ];\n }\n}\n\nexport default Editor;\n","import CommandManager from \"./CommandManager\";\n\nimport copyBlock from \"./commands/copyBlock\";\nimport pasteBlock from \"./commands/pasteBlock\";\nimport duplicateBlock from \"./commands/duplicateBlock\";\nimport deleteBlock from \"./commands/deleteBlock\";\nimport insertLink from \"./commands/insertLink\";\n\nCommandManager.registerCommand(copyBlock);\nCommandManager.registerCommand(pasteBlock);\nCommandManager.registerCommand(duplicateBlock);\nCommandManager.registerCommand(deleteBlock);\nCommandManager.registerCommand(insertLink);\n","import Editor from \"./Editor\";\n\nclass EditorManager {\n private static _instance: EditorManager;\n public editors: Editor[];\n\n public static instance(): EditorManager {\n this._instance = this._instance || new EditorManager();\n return this._instance;\n }\n\n public constructor() {\n this.editors = [];\n }\n\n public add(e: Editor): void {\n this.editors.push(e);\n }\n\n public get(id: string): Editor | undefined {\n return this.editors.find((e: Editor) => e.id === id);\n }\n\n public async remove(id: string): Promise {\n const e = this.get(id);\n if (!e) {\n return;\n }\n await e.serialize();\n e.unload();\n\n const index = this.editors.indexOf(e);\n if (index === -1) {\n return;\n }\n this.editors.splice(index, 1);\n }\n}\n\nexport default EditorManager;\n","/** @license\n# Movable Type Block Editor (C) 2020 Six Apart Ltd. All Rights Reserved.\n# This code cannot be redistributed without permission from www.sixapart.com.\n*/\n\nimport packageInfo from \"../package.json\";\nimport i18n, { init as initI18n } from \"./i18n\";\nimport { InitOptions as InitOptionsI18n } from \"i18next\";\nimport \"./mt-block-editor.scss\";\nimport Editor, { EditorOptions } from \"./Editor\";\nimport EditorManager from \"./EditorManager\";\n\nimport React from \"react\";\nimport Block from \"./Block\";\nimport Column from \"./Block/Column\";\nimport BlockFactory from \"./BlockFactory\";\n\nimport BlockIframePreview from \"./Component/BlockIframePreview\";\nimport BlockToolbar from \"./Component/BlockToolbar\";\nimport BlockToolbarButton from \"./Component/BlockToolbarButton\";\nimport BlockConfigPanel from \"./Component/BlockConfigPanel\";\nimport BlockSetup from \"./Component/BlockSetup\";\nimport BlockSetupCommon from \"./Component/BlockSetupCommon\";\nimport BlockLabel from \"./Component/BlockLabel\";\nimport EditorMode from \"./Component/EditorMode\";\nimport {\n Dialog,\n DialogHeader,\n DialogBody,\n DialogFooter,\n} from \"./Component/Dialog\";\n\nimport * as Context from \"./Context\";\nimport * as Hook from \"./Hook\";\nimport * as icon from \"./icon\";\nimport * as util from \"./util\";\nimport * as decorator from \"./decorator\";\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype EventHandler = (...args: any[]) => void;\n\nexport interface BoilerplateBlockOptions {\n typeId: string;\n className: string;\n rootBlock?: string | null;\n label: string;\n icon: string;\n iconString: string;\n html: string;\n canRemoveBlock: boolean;\n panelBlockTypes?: string[];\n shortcutBlockTypes?: string[];\n shouldBeCompiled: boolean;\n showPreview: boolean;\n previewHeader: string;\n}\n\ninterface BoilerplateBlockOverwrites {\n _html: string;\n canRemoveBlock?: boolean;\n panelBlockTypes?: string[];\n shortcutBlockTypes?: string[];\n previewHeader?: string;\n}\n\ninterface BoilerplateBlockInitOptions {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any;\n}\n\nexport class EditorUtil {\n public static version = packageInfo.version;\n public static i18n = i18n;\n public static Component = {\n BlockIframePreview,\n BlockToolbar,\n BlockToolbarButton,\n BlockConfigPanel,\n BlockSetup,\n BlockSetupCommon,\n BlockLabel,\n EditorMode,\n Dialog,\n DialogHeader,\n DialogBody,\n DialogFooter,\n };\n public static decorator = decorator;\n public static React = React;\n public static Block = Block;\n public static Context = Context;\n public static Hook = Hook;\n public static icon = icon;\n public static util = util;\n\n static #eventHandlers: Record = {};\n\n public static on(\n name: \"create\",\n handler: (opts: EditorOptions) => void\n ): void;\n public static on(name: \"init\", handler: (editor: Editor) => void): void;\n public static on(name: string, handler: EventHandler): void {\n if (!this.#eventHandlers[name]) {\n this.#eventHandlers[name] = [];\n }\n this.#eventHandlers[name].push(handler);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private static emit(name: string, ...args: any[]): void {\n const handlers = this.#eventHandlers[name] || [];\n handlers.forEach((handler) => handler(...args));\n }\n\n public static async apply(opts: EditorOptions): Promise {\n const optsI18n: InitOptionsI18n = opts.i18n || {};\n await initI18n(optsI18n);\n\n const m = EditorManager.instance();\n this.emit(\"create\", opts);\n const e = new Editor(opts as EditorOptions);\n this.emit(\"init\", e);\n m.add(e);\n\n return e;\n }\n\n public static get({ id }: { id: string }): Editor | undefined {\n const m = EditorManager.instance();\n return m.get(id);\n }\n\n public static async unload({ id }: { id: string }): Promise {\n const m = EditorManager.instance();\n await m.remove(id);\n }\n\n public static async serialize(): Promise {\n const m = EditorManager.instance();\n await Promise.all(m.editors.map((e) => e.serialize()));\n }\n\n public static registerBlockType(block: typeof Block): void {\n BlockFactory.registerType(block);\n }\n\n public static deregisterBlockType(block: typeof Block | string): void {\n BlockFactory.deregisterType(block);\n }\n\n public static createBoilerplateBlock({\n typeId,\n className,\n rootBlock,\n label,\n icon,\n iconString,\n html,\n canRemoveBlock,\n panelBlockTypes,\n shortcutBlockTypes,\n shouldBeCompiled,\n showPreview,\n previewHeader,\n }: BoilerplateBlockOptions): typeof Block {\n const BoilerplateBlock = function (\n this: Column,\n init: BoilerplateBlockInitOptions\n ): void {\n const overwrite: BoilerplateBlockOverwrites = {\n _html: html,\n };\n if (canRemoveBlock !== undefined) {\n overwrite.canRemoveBlock = !!canRemoveBlock;\n }\n if (panelBlockTypes) {\n overwrite.panelBlockTypes = panelBlockTypes;\n }\n if (shortcutBlockTypes) {\n overwrite.shortcutBlockTypes = shortcutBlockTypes;\n }\n if (previewHeader !== undefined) {\n overwrite.previewHeader = previewHeader;\n }\n\n return Reflect.construct(\n Column,\n [Object.assign(overwrite, init || {})],\n BoilerplateBlock\n );\n };\n\n BoilerplateBlock.prototype = Object.create(Column.prototype);\n BoilerplateBlock.prototype.constructor = BoilerplateBlock;\n BoilerplateBlock.typeId = typeId;\n BoilerplateBlock.className = className;\n BoilerplateBlock.label = label;\n if (rootBlock !== undefined) {\n BoilerplateBlock.rootBlock = rootBlock;\n }\n if (icon) {\n BoilerplateBlock.icon = icon;\n }\n if (iconString) {\n BoilerplateBlock.iconString = iconString;\n }\n BoilerplateBlock.selectable = true;\n if (shouldBeCompiled !== undefined) {\n BoilerplateBlock.shouldBeCompiled = shouldBeCompiled;\n }\n if (showPreview !== undefined) {\n BoilerplateBlock.showPreview = showPreview;\n }\n\n Object.setPrototypeOf(BoilerplateBlock, Column);\n\n return BoilerplateBlock as unknown as typeof Block;\n }\n\n public static isSupportedEnvironment(): boolean {\n if (/Trident|MSIE|Edge/.test(window.navigator.userAgent)) {\n return false;\n }\n\n return true;\n }\n}\n\ndeclare global {\n interface Window {\n MTBlockEditor: typeof EditorUtil;\n }\n}\n\nwindow.MTBlockEditor = EditorUtil;\n"],"names":["module","exports","locales","it","TypeError","String","isObject","wellKnownSymbol","create","definePropertyModule","UNSCOPABLES","ArrayPrototype","Array","prototype","undefined","f","configurable","value","key","charAt","S","index","unicode","length","Constructor","name","toObject","toAbsoluteIndex","toLength","O","this","argumentsLength","arguments","end","endPos","$forEach","arrayMethodIsStrict","arrayMethodUsesToLength","STRICT_METHOD","USES_TO_LENGTH","forEach","callbackfn","bind","callWithSafeIterationClosing","isArrayIteratorMethod","createProperty","getIteratorMethod","arrayLike","result","step","iterator","next","C","mapfn","mapping","iteratorMethod","call","done","toIndexedObject","createMethod","IS_INCLUDES","$this","el","fromIndex","includes","indexOf","IndexedObject","arraySpeciesCreate","push","TYPE","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","that","specificCreate","self","boundFunction","target","map","filter","some","every","find","findIndex","fails","V8_VERSION","SPECIES","METHOD_NAME","array","constructor","foo","Boolean","argument","method","DESCRIPTORS","has","defineProperty","Object","cache","thrower","options","ACCESSORS","argument0","argument1","enumerable","get","aFunction","IS_RIGHT","memo","i","left","right","isArray","originalArray","anObject","fn","ENTRIES","error","returnMethod","ITERATOR","SAFE_CLOSING","called","iteratorWithReturn","from","exec","SKIP_CLOSING","ITERATION_SUPPORT","object","toString","slice","TO_STRING_TAG_SUPPORT","classofRaw","TO_STRING_TAG","CORRECT_ARGUMENTS","tag","tryGet","callee","set","adder","add","k","len","wasDeleted","collection","remover","allDeleted","redefineAll","anInstance","iterate","defineIterator","setSpecies","fastKey","InternalStateModule","setInternalState","internalStateGetterFor","getterFor","getConstructor","wrapper","CONSTRUCTOR_NAME","ADDER","iterable","type","first","last","size","getInternalState","define","previous","state","entry","getEntry","removed","clear","data","prev","setStrong","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","iterated","kind","$","global","isForced","redefine","InternalMetadataModule","checkCorrectnessOfIteration","setToStringTag","inheritIfRequired","common","IS_WEAK","NativeConstructor","NativePrototype","exported","fixMethod","KEY","nativeMethod","entries","REQUIRED","instance","HASNT_CHAINING","THROWS_ON_PRIMITIVES","ACCEPT_ITERABLES","BUGGY_ZERO","$instance","dummy","forced","ownKeys","getOwnPropertyDescriptorModule","source","keys","getOwnPropertyDescriptor","MATCH","regexp","e","F","getPrototypeOf","requireObjectCoercible","quot","string","attribute","p1","replace","IteratorPrototype","createPropertyDescriptor","Iterators","returnThis","IteratorConstructor","NAME","bitmap","writable","toPrimitive","propertyKey","hint","createIteratorConstructor","setPrototypeOf","createNonEnumerableProperty","IS_PURE","IteratorsCore","BUGGY_SAFARI_ITERATORS","KEYS","VALUES","Iterable","DEFAULT","IS_SET","FORCED","CurrentIteratorPrototype","methods","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","values","proto","path","wrappedWellKnownSymbolModule","Symbol","document","EXISTS","createElement","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","userAgent","test","getBuiltIn","match","version","process","versions","v8","split","setGlobal","copyConstructorProperties","targetProperty","sourceProperty","descriptor","TARGET","GLOBAL","STATIC","stat","noTargetGet","sham","regexpExec","REPLACE_SUPPORTS_NAMED_GROUPS","re","groups","a","REPLACE_KEEPS_$0","REPLACE","REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE","SPLIT_WORKS_WITH_OVERWRITTEN_EXEC","originalExec","apply","SYMBOL","DELEGATES_TO_SYMBOL","DELEGATES_TO_EXEC","execCalled","flags","nativeRegExpMethod","str","arg2","forceStringMethod","stringMethod","regexMethod","RegExp","arg","flattenIntoArray","original","sourceLen","start","depth","mapper","thisArg","element","targetIndex","sourceIndex","mapFn","isExtensible","preventExtensions","b","c","factories","Function","partArgs","args","concat","argsLength","list","join","construct","variable","namespace","classof","getIterator","Map","Set","check","Math","globalThis","window","g","hasOwnProperty","console","propertyIsEnumerable","Wrapper","NewTarget","NewTargetPrototype","store","functionToString","inspectSource","hiddenKeys","uid","FREEZING","METADATA","id","setMetadata","objectID","weakData","meta","getWeakData","onFreeze","NATIVE_WEAK_MAP","objectHas","sharedKey","WeakMap","wmget","wmhas","wmset","metadata","STATE","enforce","replacement","feature","detection","normalize","POLYFILL","NATIVE","toLowerCase","isRegExp","Result","stopped","AS_ENTRIES","IS_ITERATOR","iterFn","stop","PrototypeOfArrayIteratorPrototype","arrayIterator","flush","head","notify","toggle","node","promise","then","macrotask","IS_IOS","MutationObserver","WebKitMutationObserver","Promise","IS_NODE","queueMicrotaskDescriptor","queueMicrotask","parent","domain","exit","enter","nextTick","createTextNode","observe","characterData","resolve","task","getOwnPropertySymbols","url","URL","searchParams","pathname","toJSON","sort","href","URLSearchParams","username","host","hash","PromiseCapability","reject","$$resolve","$$reject","trim","whitespaces","$parseFloat","parseFloat","Infinity","trimmedString","$parseInt","parseInt","hex","radix","objectKeys","getOwnPropertySymbolsModule","propertyIsEnumerableModule","nativeAssign","assign","A","B","symbol","alphabet","chr","T","j","activeXDocument","defineProperties","enumBugKeys","html","documentCreateElement","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","content","LT","NullProtoObject","ActiveXObject","iframeDocument","iframe","JS","write","close","temp","parentWindow","NullProtoObjectViaActiveX","style","display","appendChild","src","contentWindow","open","Properties","IE8_DOM_DEFINE","nativeDefineProperty","P","Attributes","nativeGetOwnPropertyDescriptor","nativeGetOwnPropertyNames","windowNames","getOwnPropertyNames","getWindowNames","internalObjectKeys","CORRECT_PROTOTYPE_GETTER","ObjectPrototype","names","nativePropertyIsEnumerable","NASHORN_BUG","V","aPossiblePrototype","setter","CORRECT_SETTER","__proto__","TO_ENTRIES","getOwnPropertyNamesModule","newPromiseCapability","x","promiseCapability","enforceInternalState","TEMPLATE","unsafe","simple","R","re1","re2","regexpFlags","stickyHelpers","nativeExec","nativeReplace","patchedExec","UPDATES_LAST_INDEX_WRONG","lastIndex","UNSUPPORTED_Y","BROKEN_CARET","NPCG_INCLUDED","reCopy","sticky","charsAdded","strCopy","multiline","input","ignoreCase","dotAll","RE","s","y","TAG","shared","SHARED","mode","copyright","defaultConstructor","toInteger","CONVERT_TO_STRING","pos","second","position","charCodeAt","codeAt","repeat","ceil","IS_END","maxLength","fillString","fillLen","stringFiller","stringLength","fillStr","intMaxLength","maxInt","regexNonASCII","regexSeparators","OVERFLOW_ERROR","floor","stringFromCharCode","fromCharCode","digitToBasic","digit","adapt","delta","numPoints","firstTime","baseMinusTMin","base","encode","output","counter","extra","ucs2decode","currentValue","inputLength","n","bias","basicLength","handledCPCount","m","handledCPCountPlusOne","RangeError","q","t","qMinusT","baseMinusT","label","encoded","labels","count","whitespace","ltrim","rtrim","defer","channel","port","location","setImmediate","clearImmediate","MessageChannel","Dispatch","queue","ONREADYSTATECHANGE","run","runner","listener","event","post","postMessage","protocol","now","port2","port1","onmessage","addEventListener","importScripts","removeChild","setTimeout","max","min","integer","isNaN","PREFERRED_STRING","val","valueOf","postfix","random","NATIVE_SYMBOL","USE_SYMBOL_AS_UID","WellKnownSymbolsStore","createWellKnownSymbol","withoutSetter","arrayMethodHasSpeciesSupport","IS_CONCAT_SPREADABLE","MAX_SAFE_INTEGER","MAXIMUM_ALLOWED_INDEX_EXCEEDED","IS_CONCAT_SPREADABLE_SUPPORT","SPECIES_SUPPORT","isConcatSpreadable","spreadable","E","$every","fill","addToUnscopables","$filter","HAS_SPECIES_SUPPORT","$find","FIND","SKIPS_HOLES","flat","depthArg","$includes","$indexOf","nativeIndexOf","NEGATIVE_ZERO","searchElement","ARRAY_ITERATOR","Arguments","nativeJoin","ES3_STRINGS","separator","$map","$reduce","reduce","nativeReverse","reverse","nativeSlice","fin","nativeSort","FAILS_ON_UNDEFINED","FAILS_ON_NULL","comparefn","splice","deleteCount","insertCount","actualDeleteCount","to","actualStart","dateToPrimitive","TO_PRIMITIVE","DatePrototype","Date","INVALID_DATE","TO_STRING","nativeDateToString","getTime","NaN","FunctionPrototype","FunctionPrototypeToString","nameRE","collectionStrong","init","NUMBER","NativeNumber","NumberPrototype","BROKEN_CLASSOF","toNumber","third","maxCode","digits","code","NumberWrapper","$entries","fromEntries","obj","v","nativeGetPrototypeOf","nativeKeys","$values","parseFloatImplementation","parseIntImplementation","Internal","OwnPromiseCapability","PromiseWrapper","nativeThen","NativePromise","speciesConstructor","microtask","promiseResolve","hostReportErrors","newPromiseCapabilityModule","perform","PROMISE","getInternalPromiseState","PromiseConstructor","$fetch","newGenericPromiseCapability","DISPATCH_EVENT","createEvent","dispatchEvent","UNHANDLED_REJECTION","PromiseRejectionEvent","FakePromise","INCORRECT_ITERATION","all","isThenable","isReject","notified","chain","reactions","ok","exited","reaction","handler","fail","rejection","onHandleUnhandled","onUnhandled","reason","initEvent","isUnhandled","emit","unwrap","internalReject","internalResolve","executor","onFulfilled","onRejected","fetch","wrap","r","capability","$promiseResolve","remaining","alreadyCalled","race","nativeConstruct","NEW_TARGET_BUG","ARGS_BUG","Target","newTarget","$args","deleteProperty","getFlags","NativeRegExp","RegExpPrototype","CORRECT_NEW","RegExpWrapper","pattern","thisIsRegExp","patternIsRegExp","flagsAreUndefined","proxy","nativeToString","NOT_GENERIC","INCORRECT_NAME","p","rf","createHTML","forcedStringHTMLMethod","anchor","notARegExp","correctIsRegExpLogic","searchString","STRING_ITERATOR","point","fixRegExpWellKnownSymbolLogic","advanceStringIndex","regExpExec","nativeMatch","maybeCallNative","matcher","res","rx","fullUnicode","matchStr","$padStart","padStart","SUBSTITUTION_SYMBOLS","SUBSTITUTION_SYMBOLS_NO_NAMED","UNSAFE_SUBSTITUTE","searchValue","replaceValue","replacer","functionalReplace","results","accumulatedResult","nextSourcePosition","matched","captures","namedCaptures","replacerArgs","getSubstitution","tailPos","symbols","ch","capture","callRegExpExec","arrayPush","MAX_UINT32","SUPPORTS_Y","SPLIT","nativeSplit","internalSplit","limit","lim","lastLength","lastLastIndex","separatorCopy","splitter","unicodeMatching","z","nativeStartsWith","startsWith","CORRECT_IS_REGEXP_LOGIC","search","NativeSymbol","description","EmptyStringDescriptionStore","SymbolWrapper","symbolPrototype","symbolToString","native","desc","nativeObjectCreate","getOwnPropertyNamesExternal","defineWellKnownSymbol","HIDDEN","$Symbol","$stringify","AllSymbols","ObjectPrototypeSymbols","StringToSymbolRegistry","SymbolToStringRegistry","QObject","USE_SETTER","findChild","setSymbolDescriptor","ObjectPrototypeDescriptor","isSymbol","$defineProperty","$defineProperties","properties","$getOwnPropertySymbols","$propertyIsEnumerable","$getOwnPropertyDescriptor","$getOwnPropertyNames","IS_OBJECT_PROTOTYPE","keyFor","sym","useSetter","useSimple","stringify","space","$replacer","collectionDeleteAll","real","deleteAll","getMapIterator","newMap","findKey","sameValueZero","keyOf","mapKeys","mapValues","merge","noInitial","accumulator","update","callback","isPresentInMap","collectionAddAll","addAll","difference","newSet","getSetIterator","intersection","hasCheck","isDisjointFrom","isSubsetOf","otherSet","isSupersetOf","sep","symmetricDifference","union","at","DOMIterables","COLLECTION_NAME","Collection","CollectionPrototype","ArrayIteratorMethods","ArrayValues","scheduler","timeout","boundArgs","setInterval","USE_NATIVE_URL","hasOwn","Headers","URL_SEARCH_PARAMS","URL_SEARCH_PARAMS_ITERATOR","getInternalParamsState","plus","sequences","percentSequence","bytes","percentDecode","sequence","decodeURIComponent","deserialize","serialize","encodeURIComponent","parseSearchParams","query","attributes","shift","updateSearchParams","validateArgumentsLength","passed","required","URLSearchParamsIterator","params","URLSearchParamsConstructor","entryIterator","entryNext","updateURL","URLSearchParamsPrototype","append","getAll","found","entriesIndex","sliceIndex","body","headers","getState","EOF","arrayFrom","toASCII","URLSearchParamsModule","NativeURL","getInternalSearchParamsState","getInternalURLState","pow","INVALID_SCHEME","INVALID_HOST","INVALID_PORT","ALPHA","ALPHANUMERIC","DIGIT","HEX_START","OCT","DEC","HEX","FORBIDDEN_HOST_CODE_POINT","FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT","LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE","TAB_AND_NEW_LINE","parseHost","codePoints","parseIPv6","isSpecial","parseIPv4","percentEncode","C0ControlPercentEncodeSet","partsLength","numbers","part","number","ipv4","parts","pop","numbersSeen","ipv4Piece","swaps","swap","address","pieceIndex","compress","pointer","char","serializeHost","ignore0","unshift","ipv6","maxIndex","currStart","currLength","findLongestZeroSequence","fragmentPercentEncodeSet","pathPercentEncodeSet","userinfoPercentEncodeSet","specialSchemes","ftp","file","http","https","ws","wss","scheme","includesCredentials","password","cannotHaveUsernamePasswordPort","cannotBeABaseURL","isWindowsDriveLetter","normalized","startsWithWindowsDriveLetter","shortenURLsPath","pathSize","isSingleDot","segment","SCHEME_START","SCHEME","NO_SCHEME","SPECIAL_RELATIVE_OR_AUTHORITY","PATH_OR_AUTHORITY","RELATIVE","RELATIVE_SLASH","SPECIAL_AUTHORITY_SLASHES","SPECIAL_AUTHORITY_IGNORE_SLASHES","AUTHORITY","HOST","HOSTNAME","PORT","FILE","FILE_SLASH","FILE_HOST","PATH_START","PATH","CANNOT_BE_A_BASE_URL_PATH","QUERY","FRAGMENT","parseURL","stateOverride","bufferCodePoints","failure","buffer","seenAt","seenBracket","seenPasswordToken","fragment","codePoint","encodedCodePoints","URLConstructor","baseState","urlString","searchParamsState","serializeURL","origin","getOrigin","getProtocol","getUsername","getPassword","getHost","hostname","getHostname","getPort","getPathname","getSearch","getSearchParams","getHash","URLPrototype","accessorDescriptor","getter","nativeCreateObjectURL","createObjectURL","nativeRevokeObjectURL","revokeObjectURL","blob","prefix","Events","EE","context","once","addListener","emitter","evt","_events","_eventsCount","clearEvent","EventEmitter","eventNames","events","listeners","handlers","l","ee","listenerCount","a1","a2","a3","a4","a5","removeListener","on","removeAllListeners","off","prefixed","equal","propIsEnumerable","test1","test2","test3","letter","err","shouldUseNative","objectTypes","root","freeExports","freeModule","nodeType","freeGlobal","maxSafeInteger","reOpera","objectProto","capitalize","toUpperCase","format","forOwn","getClassOf","qualify","each","platform","parse","ua","isCustomContext","nav","navigator","isSpecialCasedOS","property","likeChrome","objectClass","airRuntimeClass","enviroClass","javaClass","java","phantomClass","rhino","environment","alpha","beta","doc","opera","operamini","operaClass","arch","prerelease","useFeatures","layout","guess","guesses","getName","product","getProduct","manufacturer","getManufacturer","os","cleanupOS","getOS","getVersion","patterns","runtime","flash","system","Capabilities","phantom","major","minor","patch","documentMode","toFixed","lang","System","getProperty","require","browser","electron","nw","appMinorVersion","external","family","architecture","cpuClass","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","props","propName","componentName","propFullName","secret","Error","getShim","isRequired","ReactPropTypes","bigint","bool","func","any","arrayOf","elementType","instanceOf","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","for","aa","u","ba","ca","da","ea","fa","ha","ia","ja","ka","la","ma","displayName","$$typeof","render","_status","_result","D","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentDispatcher","current","ReactCurrentBatchConfig","suspense","oa","_threadCount","_currentValue2","Uint16Array","H","qa","ra","sa","ta","J","d","acceptsBooleans","attributeName","attributeNamespace","mustUseProperty","propertyName","sanitizeURL","K","L","M","xlinkHref","xa","N","substring","ya","va","wa","Aa","is","Q","U","W","Ba","memoizedState","Ca","Da","Ea","Fa","dispatch","delete","action","Ga","Ha","X","Ia","readContext","useContext","useMemo","useReducer","useRef","useState","useLayoutEffect","useCallback","useImperativeHandle","useEffect","useDebugValue","useResponder","responder","useDeferredValue","useTransition","Ja","Ka","La","area","br","col","embed","hr","img","keygen","link","param","track","wbr","Ma","menuitem","Y","animationIterationCount","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","Na","Oa","Pa","Z","Children","toArray","Qa","Ra","listing","pre","textarea","Sa","Ta","Ua","Wa","Xa","children","dangerouslySetInnerHTML","suppressContentEditableWarning","suppressHydrationWarning","Ya","Za","isReactComponent","contextType","contextTypes","pa","h","isMounted","enqueueForceUpdate","enqueueReplaceState","enqueueSetState","getDerivedStateFromProps","w","updater","UNSAFE_componentWillMount","componentWillMount","getChildContext","childContextTypes","isValidElement","child","$a","domNamespace","childIndex","footer","threadID","stack","exhausted","currentSelectValue","previousWasTextNode","makeStaticMarkup","suspenseDepth","contextIndex","contextStack","contextValueStack","destroy","clearProviders","pushProvider","_context","popProvider","read","I","G","fallbackFrame","renderDOM","ref","_ctor","default","na","defaultChecked","defaultValue","checked","Va","selected","__html","ab","renderToString","renderToStaticMarkup","renderToNodeStream","renderToStaticNodeStream","onError","currentTarget","extractEvents","eventTypes","phasedRegistrationNames","registrationName","dependencies","za","stateNode","removeAttribute","setAttribute","setAttributeNS","bb","cb","db","eb","fb","gb","hb","ib","jb","kb","lb","mb","nb","pb","qb","_debugOwner","_debugSource","fileName","lineNumber","return","rb","sb","nodeName","xb","_valueTracker","getValue","setValue","stopTracking","tb","yb","zb","_wrapperState","initialChecked","Ab","initialValue","controlled","Bb","Cb","Db","Eb","ownerDocument","activeElement","Gb","Fb","Hb","defaultSelected","disabled","Ib","Jb","Kb","Lb","textContent","Mb","Nb","Ob","Pb","Qb","namespaceURI","innerHTML","firstChild","MSApp","execUnsafeLocalFunction","Rb","lastChild","nodeValue","Sb","Tb","animationend","animationiteration","animationstart","transitionend","Ub","Vb","Wb","animation","transition","Xb","Yb","Zb","$b","ac","bc","cc","dc","alternate","effectTag","ec","dehydrated","fc","hc","sibling","gc","ic","jc","kc","lc","_dispatchListeners","_dispatchInstances","isPropagationStopped","isPersistent","release","mc","nc","srcElement","correspondingUseElement","parentNode","oc","pc","qc","topLevelType","nativeEvent","targetInst","ancestors","rc","eventSystemFlags","sc","containerInfo","tc","uc","vc","wc","xc","yc","zc","Ac","Bc","Cc","Dc","Ec","Fc","Gc","Hc","Ic","Kc","blockedOn","container","Lc","pointerId","Mc","Nc","Pc","unstable_runWithPriority","priority","hydrate","Qc","Rc","Sc","Tc","Uc","unstable_scheduleCallback","unstable_NormalPriority","Vc","Wc","Yc","Zc","$c","ad","bubbled","captured","eventPriority","bd","cd","dd","unstable_UserBlockingPriority","ed","fd","gd","hd","Oc","jd","kd","ld","md","setProperty","nd","od","pd","qd","rd","sd","td","ud","vd","offset","nextSibling","wd","contains","compareDocumentPosition","xd","HTMLIFrameElement","yd","contentEditable","zd","Ad","Bd","Cd","Dd","Ed","Fd","autoFocus","Gd","Hd","Id","clearTimeout","Jd","Kd","previousSibling","Ld","Md","Nd","Od","Pd","Qd","Rd","Sd","Td","dispatchConfig","Ud","_targetInst","Vd","Wd","Xd","Yd","Zd","$d","ae","be","ce","Interface","isDefaultPrevented","defaultPrevented","returnValue","eventPool","fe","destructor","de","getPooled","preventDefault","stopPropagation","cancelBubble","persist","eventPhase","bubbles","cancelable","timeStamp","isTrusted","extend","ge","he","ie","je","ke","le","me","ne","oe","beforeInput","compositionEnd","compositionStart","compositionUpdate","pe","qe","keyCode","detail","se","ve","locale","which","te","ctrlKey","altKey","metaKey","ue","we","color","date","datetime","email","month","range","tel","text","time","week","xe","ye","change","ze","Ae","Be","Ce","De","Ee","Fe","Ge","detachEvent","He","Ie","attachEvent","Je","Ke","Le","Me","_isInputEventSupported","Ne","view","Oe","Alt","Control","Meta","Shift","Pe","getModifierState","Qe","Re","Se","Te","Ue","Ve","screenX","screenY","clientX","clientY","pageX","pageY","shiftKey","button","buttons","relatedTarget","fromElement","toElement","movementX","movementY","We","width","height","pressure","tangentialPressure","tiltX","tiltY","twist","pointerType","isPrimary","Xe","mouseEnter","mouseLeave","pointerEnter","pointerLeave","Ye","defaultView","$e","af","bf","cf","df","select","ef","ff","gf","hf","jf","selectionStart","selectionEnd","anchorNode","getSelection","anchorOffset","focusNode","focusOffset","kf","onSelect","lf","animationName","elapsedTime","pseudoElement","mf","clipboardData","nf","of","charCode","pf","Esc","Spacebar","Left","Up","Right","Down","Del","Win","Menu","Apps","Scroll","MozPrintableKey","qf","sf","dataTransfer","tf","touches","targetTouches","changedTouches","uf","vf","deltaX","wheelDeltaX","deltaY","wheelDeltaY","wheelDelta","deltaZ","deltaMode","wf","SimpleEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin","yf","zf","Af","Bf","Cf","__reactInternalMemoizedUnmaskedChildContext","__reactInternalMemoizedMaskedChildContext","Df","Ef","Ff","Gf","__reactInternalMemoizedMergedChildContext","Hf","If","Jf","Kf","unstable_cancelCallback","Lf","unstable_requestPaint","Mf","unstable_now","Nf","unstable_getCurrentPriorityLevel","Of","unstable_ImmediatePriority","Pf","Qf","Rf","unstable_LowPriority","Sf","unstable_IdlePriority","Tf","Uf","unstable_shouldYield","Vf","Wf","Xf","Yf","Zf","$f","ag","bg","cg","dg","eg","fg","gg","hg","ig","defaultProps","jg","kg","lg","mg","ng","og","_currentValue","pg","childExpirationTime","qg","firstContext","expirationTime","rg","sg","observedBits","responders","tg","ug","updateQueue","baseQueue","pending","effects","vg","wg","suspenseConfig","payload","xg","yg","zg","Ag","Bg","Cg","Dg","Eg","Component","refs","Fg","Jg","_reactInternalFiber","Gg","Hg","Ig","Kg","shouldComponentUpdate","isPureReactComponent","Lg","Mg","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","Ng","getSnapshotBeforeUpdate","componentDidMount","Og","Pg","_owner","_stringRef","Qg","Rg","lastEffect","nextEffect","firstEffect","Sg","Tg","Ug","implementation","Vg","Wg","Xg","Yg","Zg","$g","ah","bh","dh","documentElement","tagName","eh","fh","gh","hh","memoizedProps","revealOrder","ih","jh","kh","lh","mh","nh","oh","ph","qh","rh","sh","th","uh","vh","wh","lastRenderedReducer","eagerReducer","eagerState","lastRenderedState","xh","yh","zh","Ah","deps","Bh","Ch","Dh","Eh","Fh","Gh","Hh","Ih","Jh","Kh","Lh","Mh","Nh","Oh","Ph","Qh","Rh","Sh","Th","pendingProps","Uh","Vh","Wh","Xh","Yh","ReactCurrentOwner","Zh","$h","ai","bi","compare","ci","di","ei","fi","UNSAFE_componentWillUpdate","componentWillUpdate","componentDidUpdate","gi","getDerivedStateFromError","hi","pendingContext","ni","oi","pi","qi","ii","retryTime","ji","fallback","unstable_avoidThisFallback","ki","li","isBackwards","rendering","renderingStartTime","tail","tailExpiration","tailMode","mi","ri","si","wasMultiple","multiple","onClick","onclick","createElementNS","ti","ui","vi","wi","xi","yi","zi","Ai","Bi","WeakSet","Ci","Fi","Ei","Gi","__reactInternalSnapshotBeforeUpdate","Hi","Ii","Ji","focus","Ki","Li","componentWillUnmount","Di","Mi","Ni","Oi","Pi","Qi","Ri","insertBefore","_reactRootContainer","Si","Ti","Ui","Vi","Wi","Xi","Yi","Zi","$i","componentDidCatch","aj","componentStack","Rj","bj","cj","dj","ej","fj","gj","hj","ij","jj","kj","lj","mj","nj","oj","pj","qj","rj","sj","tj","uj","vj","wj","timeoutMs","xj","yj","zj","lastExpiredTime","Aj","firstPendingTime","lastPingedTime","nextKnownPendingLevel","callbackExpirationTime","callbackPriority","callbackNode","Bj","Cj","Dj","Ej","Fj","Gj","Hj","finishedWork","finishedExpirationTime","lastSuspendedTime","Ij","timeoutHandle","Jj","busyMinDurationMs","busyDelayMs","Kj","Mj","Nj","pingCache","Oj","ub","Pj","Xc","Qj","Sj","firstSuspendedTime","rangeCount","wb","activeElementDetached","focusedElem","selectionRange","Tj","createRange","setStart","removeAllRanges","addRange","setEnd","scrollLeft","top","scrollTop","vb","Uj","Vj","Wj","hidden","ob","Xj","_calculateChangedBits","unstable_observedBits","Zj","pendingChildren","ak","bk","ck","dk","ek","fk","Jc","_internalRoot","gk","ik","hasAttribute","hk","kk","jk","unmount","querySelectorAll","JSON","form","Lj","lk","findFiberByHostInstance","__REACT_DEVTOOLS_GLOBAL_HOOK__","isDisabled","supportsFiber","inject","onCommitFiberRoot","onCommitFiberUnmount","Yj","overrideHookState","overrideProps","setSuspenseHandler","scheduleUpdate","currentDispatcherRef","findHostInstanceByFiber","findHostInstancesForRefresh","scheduleRefresh","scheduleRoot","setRefreshHandler","getCurrentFiber","bundleType","rendererPackageName","createPortal","findDOMNode","flushSync","unmountComponentAtNode","unstable_batchedUpdates","unstable_createPortal","unstable_renderSubtreeIntoContainer","checkDCE","__self","__source","jsx","setState","forceUpdate","keyPrefix","escape","IsSomeRendererActing","only","Fragment","Profiler","PureComponent","StrictMode","Suspense","cloneElement","createContext","Provider","Consumer","createFactory","createRef","forwardRef","lazy","Op","iteratorSymbol","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","innerFn","outerFn","tryLocsList","protoGenerator","Generator","generator","Context","makeInvokeMethod","tryCatch","GenStateSuspendedStart","GenStateSuspendedYield","GenStateExecuting","GenStateCompleted","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","getProto","NativeIteratorPrototype","Gp","defineIteratorMethods","_invoke","AsyncIterator","PromiseImpl","invoke","record","__await","unwrapped","previousPromise","callInvokeWithMethodAndArg","delegate","delegateResult","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","methodName","info","resultName","nextLoc","pushTryEntry","locs","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","isGeneratorFunction","genFun","ctor","mark","awrap","async","iter","skipTempReset","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","unstable_forceFrameRate","performance","cancelAnimationFrame","requestAnimationFrame","sortIndex","startTime","priorityLevel","unstable_Profiling","unstable_continueExecution","unstable_getFirstCallbackNode","unstable_next","unstable_pauseExecution","delay","unstable_wrapCallback","webpackContext","req","webpackContextResolve","__webpack_require__","o","__webpack_module_cache__","moduleId","cachedModule","loaded","__webpack_modules__","__esModule","definition","prop","nmd","paths","_typeof","toPropertyKey","Number","_defineProperty","_classCallCheck","_defineProperties","_createClass","_assertThisInitialized","ReferenceError","_possibleConstructorReturn","_getPrototypeOf","_setPrototypeOf","_inherits","consoleLogger","log","warn","baseLogger","Logger","concreteLogger","logger","debug","_len","_key","forward","_len2","_key2","_len3","_key3","_len4","_key4","lvl","debugOnly","moduleName","observers","_this","observer","rej","makeString","getLastOfPath","Empty","cleanKey","canNotTraverseDeeper","setPath","newValue","_getLastOfPath","getPath","_getLastOfPath3","getPathWithDefaults","defaultData","deepExtend","overwrite","regexEscape","_entityMap","isIE10","ResourceStore","_EventEmitter","ns","defaultNS","keySeparator","lng","silent","addNamespaces","resources","addResource","deep","pack","hasResourceBundle","removeNamespaces","getResource","compatibilityAPI","postProcessor","processors","addPostProcessor","translator","processor","checkedLoadedFor","Translator","services","copy","language","interpolation","resolved","nsSeparator","namespaces","interpolator","nestingRegexp","lastKey","_this2","overloadTranslationOptionHandler","_this$extractFromKey","extractFromKey","appendNamespaceToCIMode","resUsedKey","usedKey","resExactUsedKey","exactUsedKey","resType","joinArrays","handleAsObjectInI18nFormat","i18nFormat","handleAsObject","returnObjects","returnedObjectHandler","resTypeIsArray","copy$$1","newKeyToUse","deepKey","translate","extendTranslation","usedDefault","isValidLookup","suffix","pluralResolver","getSuffix","updateMissing","lngs","fallbackLngs","languageUtils","getFallbackCodes","fallbackLng","saveMissingTo","toResolveHierarchy","send","missingKeyHandler","backendConnector","saveMissing","needsPluralHandling","saveMissingPlurals","getPluralFormsOfKey","appendNamespaceToMissingKey","parseMissingKeyHandler","_this3","usedLng","usedNS","skipInterpolation","nestBef","skipOnVariables","defaultVariables","interpolate","nest","postProcess","postProcessorNames","applyPostProcessor","postProcessPassResolved","i18nResolved","_this4","extracted","fallbackNS","needsContextHandling","codes","utils","hasLoadedNamespace","pluralSuffix","possibleKey","finalKey","finalKeys","addLookupKeys","contextSeparator","returnNull","returnEmptyString","resourceStore","LanguageUtil","whitelist","supportedLngs","formatLanguageCode","specialCases","lowerCaseLng","cleanCode","deprecate","isSupportedCode","load","nonExplicitSupportedLngs","getLanguagePartFromCode","cleanedLng","lngOnly","supportedLng","fallbacks","getScriptPartFromCode","fallbackCode","fallbackCodes","addCode","sets","nr","_rulesPluralsTypes","PluralResolver","rules","plurals","rule","getRule","ret","idx","noAbs","abs","simplifyPluralSuffix","returnSuffix","prepend","compatibilityJSON","Interpolator","escapeValue","iOpts","useRawValueToEscape","prefixEscaped","suffixEscaped","formatSeparator","unescapePrefix","unescapeSuffix","nestingPrefix","nestingPrefixEscaped","nestingSuffix","nestingSuffixEscaped","nestingOptionsSeparator","maxReplaces","alwaysFormat","resetRegExp","regexpStr","regexpUnescapeStr","regexpUnescape","nestingRegexpStr","replaces","regexSafe","handleFormat","missingInterpolationHandler","regex","safeValue","todo","clonedOptions","handleHasOptions","inheritedOptions","optionsString","formatters","doReduce","elem","Connector","backend","languages","toLoad","toLoadLanguages","toLoadNamespaces","hasAllNamespaces","reload","errors","addResourceBundle","_getLastOfPath2","arr","what","remove","fcName","tried","wait","queueLoad","loadOne","prepareLoading","_this5","fallbackValue","isUpdate","transformOptions","nonExplicitWhitelist","noop","I18n","modules","isInitialized","isClone","initImmediate","createClassOnDemand","ClassOrObject","preload","pluralSeparator","partialBundledLanguages","tDescription","_format","lu","languageDetector","_this2$store","_this2$store2","deferred","changeLanguage","usedCallback","isLanguageChangingTo","setLng","getBestMatchFromCodes","cacheUserLanguage","loadResources","detect","fixedT","opts","rest","_this$translator","_this$translator2","exists","_this6","lastLng","loadNotPending","loadState","precheck","preResult","_this7","preloaded","newLngs","_this8","mergedOptions","clone","addQueryString","queryString","paramName","ajax","queryStringParams","XMLHttpRequest","crossDomain","setRequestHeader","withCredentials","overrideMimeType","customHeaders","onreadystatechange","readyState","responseText","Backend","defaults","loadPath","addPath","allowMultiLoading","parsePayload","loadUrl","xhr","status","i18n","use","initPromise","_x","_init","_callee","Blob","mediaBreakPoint","_isIos","_platform$os","isIos","_isTouchDevice","_platform$os2","isTouchDevice","focusIfIos","passive","_isNarrowScreen","isNarrowScreen","updateIsNarrowScreen","matchMedia","matches","isFrozen","freeze","seal","Reflect","fun","thisValue","Func","arrayForEach","unapply","arrayLastIndexOf","lastIndexOf","arrayPop","arraySplice","stringToLowerCase","stringToString","stringMatch","stringReplace","stringIndexOf","stringTrim","objectHasOwnProperty","regExpTest","typeErrorCreate","addToSet","transformCaseFunc","lcElement","cleanArray","newObject","lookupGetter","html$1","svg$1","svgFilters","svgDisallowed","mathMl$1","mathMlDisallowed","svg","mathMl","xml","MUSTACHE_EXPR","ERB_EXPR","TMPLIT_EXPR","DATA_ATTR","ARIA_ATTR","IS_ALLOWED_URI","IS_SCRIPT_OR_DATA","ATTR_WHITESPACE","DOCTYPE_NAME","CUSTOM_ELEMENT","EXPRESSIONS","NODE_TYPE","getGlobal","purify","createDOMPurify","DOMPurify","Element","isSupported","originalDocument","currentScript","DocumentFragment","HTMLTemplateElement","Node","NodeFilter","MozNamedAttrMap","DOMParser","trustedTypes","ElementPrototype","cloneNode","getNextSibling","getChildNodes","getParentNode","template","trustedTypesPolicy","emptyHTML","createNodeIterator","createDocumentFragment","getElementsByTagName","importNode","hooks","afterSanitizeAttributes","afterSanitizeElements","afterSanitizeShadowDOM","beforeSanitizeAttributes","beforeSanitizeElements","beforeSanitizeShadowDOM","uponSanitizeAttribute","uponSanitizeElement","uponSanitizeShadowNode","createHTMLDocument","IS_ALLOWED_URI$1","ALLOWED_TAGS","DEFAULT_ALLOWED_TAGS","ALLOWED_ATTR","DEFAULT_ALLOWED_ATTR","CUSTOM_ELEMENT_HANDLING","tagNameCheck","attributeNameCheck","allowCustomizedBuiltInElements","FORBID_TAGS","FORBID_ATTR","ALLOW_ARIA_ATTR","ALLOW_DATA_ATTR","ALLOW_UNKNOWN_PROTOCOLS","ALLOW_SELF_CLOSE_IN_ATTR","SAFE_FOR_TEMPLATES","SAFE_FOR_XML","WHOLE_DOCUMENT","SET_CONFIG","FORCE_BODY","RETURN_DOM","RETURN_DOM_FRAGMENT","RETURN_TRUSTED_TYPE","SANITIZE_DOM","SANITIZE_NAMED_PROPS","KEEP_CONTENT","IN_PLACE","USE_PROFILES","FORBID_CONTENTS","DEFAULT_FORBID_CONTENTS","DATA_URI_TAGS","DEFAULT_DATA_URI_TAGS","URI_SAFE_ATTRIBUTES","DEFAULT_URI_SAFE_ATTRIBUTES","MATHML_NAMESPACE","SVG_NAMESPACE","HTML_NAMESPACE","NAMESPACE","IS_EMPTY_INPUT","ALLOWED_NAMESPACES","DEFAULT_ALLOWED_NAMESPACES","MATHML_TEXT_INTEGRATION_POINTS","HTML_INTEGRATION_POINTS","COMMON_SVG_AND_HTML_ELEMENTS","PARSER_MEDIA_TYPE","SUPPORTED_PARSER_MEDIA_TYPES","CONFIG","formElement","isRegexOrFunction","testValue","_parseConfig","cfg","ADD_URI_SAFE_ATTR","ADD_DATA_URI_TAGS","ALLOWED_URI_REGEXP","ADD_TAGS","ADD_ATTR","table","tbody","TRUSTED_TYPES_POLICY","createScriptURL","purifyHostElement","createPolicy","ATTR_NAME","getAttribute","policyName","scriptUrl","_","_createTrustedTypesPolicy","ALL_SVG_TAGS","ALL_MATHML_TAGS","_forceRemove","_removeAttribute","getAttributeNode","_initDocument","dirty","leadingWhitespace","dirtyPayload","parseFromString","createDocument","childNodes","_createNodeIterator","SHOW_ELEMENT","SHOW_COMMENT","SHOW_TEXT","SHOW_PROCESSING_INSTRUCTION","SHOW_CDATA_SECTION","_isClobbered","hasChildNodes","_isNode","_executeHooks","currentNode","hook","_sanitizeElements","allowedTags","firstElementChild","_isBasicCustomElement","childClone","__removalCount","parentTagName","_checkValidNamespace","expr","_isValidAttribute","lcTag","lcName","_sanitizeAttributes","hookEvent","attrName","attrValue","keepAttr","allowedAttributes","forceKeepAttr","attr","initValue","getAttributeType","_sanitizeShadowDOM","shadowNode","shadowIterator","nextNode","sanitize","importedNode","returnNode","nodeIterator","shadowroot","shadowrootmode","serializedHTML","outerHTML","doctype","setConfig","clearConfig","isValidAttribute","addHook","entryPoint","hookFunction","removeHook","removeHooks","removeAllHooks","getElementById","querySelector","elm","selector","getNodeValue","getNodeValueByTagName","_toConsumableArray","selectorCmp","nthChildIndexes","buildSelector","nthOfTypeIndexes","_loop","nn","getShadowDomSelectorSet","blockId","div","shadowRoot","closest","getElementByNthOfTypeIndexes","indexes","_ref","_ref2","_slicedToArray","HTMLElement","entityRegExp","entityMap","escapeSingleQuoteAttribute","unescapeSingleQuoteAttribute","entityReverseMap","_ref3","_ref4","decodeHtml","isPassThroughNativeEvent","ev","nl2br","line","React","defaultSize","defaultSinglelineSize","isEqualSize","idSequence","DEFAULT_KEYS_FOR_SETUP","Block","_newFromFile","_newFromHtml","_new2","_toClipboardItem","_serialize","_compile","_serializedString","round","wrapperRef","iframePreviewSize","stripped","_asyncToGenerator","block","isNewlyAdded","_callee2","_context2","_x2","_callee3","_context3","_x3","iconString","icon","typeId","wrapperElement","inputElm","contentLabel","placeholderLabel","className","ReactDOMServer","classNames","metadataByOwnKeys","parentKeys","pk","helpText","htmlString","_callee4","_context4","_x4","_callee5","_context5","_x5","_callee6","_this$compiledHtml","_context6","removeChildIntermediateProduct","compiledHtml","shouldBeCompiled","compile","editor","serializeMeta","serializedString","removeIntermediateProduct","_x6","_callee7","_context7","_objectSpread","_x7","EditorContext","useEditorContext","BlocksContext","useBlocksContext","BlockContext","useBlockContext","_extends","_objectWithoutPropertiesLoose","_inheritsLoose","replaceClassName","origClass","classToRemove","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","Transition","_React$Component","initialStatus","appear","isMounting","appearStatus","in","unmountOnExit","mountOnEnter","nextCallback","prevState","_proto","updateStatus","prevProps","nextStatus","cancelNextCallback","getTimeouts","mounting","performEnter","performExit","appearing","nodeRef","maybeNode","maybeAppearing","timeouts","enterTimeout","config","safeSetState","onEntered","onEnter","onEntering","onTransitionEnd","onExit","onExiting","onExited","cancel","nextState","setNextCallback","active","doesNotHaveTimeoutOrListener","addEndListener","maybeNextCallback","_this$props","childProps","TransitionGroupContext","propTypes","removeClass","classes","classList","baseVal","CSSTransition","appliedClasses","_this$resolveArgument","resolveArguments","removeClasses","addClass","_this$resolveArgument2","_this$resolveArgument3","getClassNames","isStringClassNames","baseClassName","activeClassName","doneClassName","phase","hasClass","_addClass","_this$appliedClasses$","command","_useState2","isDialogOpen","setDialogOpen","blocksContext","editorContext","getFocusedIds","dialog","commandManager","execute","blockIds","shortcut","toKeyboardShortcutLabel","PANEL_CLASS_NAME","PANEL_PLACEMENT_DATA_NAME","BlockCommandPanel","commands","setCommands","panelRef","unloaded","contextCommands","panel","dataset","getBoundingClientRect","BlockCommand","ListStatus","AddButton","labelDirect","showShortcuts","_useBlocksContext","panelBlockTypes","shortcutBlockTypes","addBlock","Hidden","showList","setShowList","buttonElRef","blockListElRef","dummyInputElRef","onDrop","onWindowClick","blockListEl","removeEventListener","_useMemo2","selectableTypes","shortcutTypes","panelTypes","onlyShortcuts","t0","Event","t1","t2","tabIndex","onDragOver","types","dropEffect","onDragEnter","onDragLeave","files","canNewFromFile","newFromFile","title","stopImmediatePropagation","_ref5","_ref6","Visible","None","_ref7","BlockToolbar","blockContext","rendered","swapBlocks","isCommandPanelShown","setCommandPanelShown","toggleCommandPanelShown","focusEditor","rows","hasBorder","onMouseDown","DEFAULT_MIN_ROWS","recursiveMap","rowCount","editHandlers","cur","undo","hist","setFocusedIds","redo","blockProperty","setBlock","_useState4","editGroups","setEditGroups","blockEditor","_wrapperRef$current","focusEl","activeEl","scrollHeight","offsetHeight","_child$props$dataPro","onChange","onKeyDown","minRows","lastValue","HTMLTextAreaElement","editManager","generateGroup","group","HTMLInputElement","EditorMode","labelMap","_ref$keys","BlockSetup","onMouseUp","_useEditorContext","divElRef","focusedIds","inFocusGroup","divEl","getComputedStyle","editorStyle","fontSize","fontFamily","mousedownListener","CustomEvent","keyupListener","CARET_ATTR","CARET","tinymceFocus","selectorSet","selection","getBody","caret","dom","_sort2","startNode","endNode","rng","getRng","collapse","_tinymceFocus","removeTinyMCEFromBlock","tinymce","getContent","tinymceId","adjustToolbar","_adjustToolbar","editorElement","toolbar","blockEl","editorRect","blockRect","getRoot","lookup","BlockEditorCommandEvent","_CustomEvent","_super","_createSuper","_wrapNativeSuper","CommandManager","_commands","_contextCommands","allCommands","_allContextCommands","allContextCommands","_yield$c$condition","_c$condition","condition","t3","_yield$c$condition2","_c$condition2","eventEmitters","_this$eventEmitters$g","blocks","_this$eventEmitters$g2","_this$eventEmitters$g3","toKeyboardShortcutKey","keyboardShortcutMap","findDescendantBlocks","useCommands","_step","_iterator","_createForOfIteratorHelper","removeAllListenersOfBlock","_callback","_condition","commandId","BlockEditorPasteCommandEvent","_BlockEditorCommandEv","_navigator$clipboard","clipboard","_ref2$editorContext","_event$clipboardData","clipboardItems","clipboardItem","_event$clipboardData2","_iterator2","_step2","_clipboardItem","_iterator3","_step3","newBlocks","_iterator4","_step4","newBlock","KeyboardEvent","ClipboardEvent","items","getData","getType","parseContent","preParseContent","factory","ParserContext","beginGrouping","endGrouping","eventAttrs","eventPrefix","eventAttrsArg","eventPrefixedAttrsArg","commentPrefix","parser","addAttributeFilter","nodes","serializer","nameWithPrefix","addEventHandlerFilter","editorManager","majorVersion","addNodeFilter","unescape","addCommentFilter","item","plainTextContent","getAsFile","pluginsInstalled","tinymceMajorVersion","getTinymceMajorVersion","installPlugins","PluginManager","MTBlockEditorPlugin","commonSettings","menubar","contextmenu","fixed_toolbar_container","inline","paste_preprocess","_preventDefault","DataTransfer","setData","fire","TAG_NAME_MAP","h1","h2","h3","h4","h5","h6","ToolbarVisibleStatus","DependsOnContent","Invisible","Editor","canRemove","removeBlock","mergeBlock","settings","_editor$opts$block$co","pluginsToolbarSettings","plugins","_settings","init_instance_callback","setContent","undoManager","setHTML","addEdit","rootRect","tn","textBlock","Text","toolbarVisibleStatus","contentDeleted","inputType","collapsed","sel","getSel","getStart","startOffset","installTinyMCEPlugins","isInSetupMode","toolbarVisible","_document$querySelect","BlockSetupCommon","BlockLabel","_Block","_get","focusBlock","preview","BlockContentEditablePreview","placeholder","history","closeTag","openTag","mtRichTextEditorFocus","tiptap","posAtDOM","resolvedPos","tr","setSelection","deleteSelection","startElement","endElement","startPos","_mtRichTextEditorFocus","removeMTRichTextEditorFromBlock","mtRichTextEditor","MTRichTextEditor","unload","mtRichTextEditorId","_toolbar$parentElemen","firstBlockElRect","_blockEl$parentElemen","parentBlockEl","blockElRect","parentElement","PLACEHOLDER_ITEM_NAME","isCommandPlaceholderDefined","insertCommandPlaceholder","customElements","_HTMLElement","_class","onUndo","_editor$opts$i18n$lng","editorStylesheets","stylesheets","pasteMenu","extensionOptions","undoRedo","registerShortcuts","embedObject","resolver","embedObjectResolver","_settings$toolbar","_toolbar$current","toolbarContainer","transaction","getMeta","empty","$from","TextForTinyMCE","substr","camelize","decamelize","pascalize","depascalize","camelizeKeys","decamelizeKeys","pascalizeKeys","depascalizeKeys","humps","Proxy","delegatesFocus","styleSheets","ssr","attachShadow","adoptedStyleSheets","CSSStyleSheet","invariant","argIndex","framesToPop","DndContext","dragDropManager","useDragDropManager","useIsomorphicLayoutEffect","DropTargetImpl","spec","monitor","protoProps","staticProps","canDrop","getItem","hover","drop","_i","_s","_e","_arr","_n","_d","minLen","arr2","useRegisteredDropTarget","connector","manager","dropTarget","useDropTarget","accept","useAccept","_registerTarget","registry","getRegistry","targetId","addTarget","removeTarget","registerTarget","_registerTarget2","handlerId","unregister","receiveHandlerId","useOptionalFactory","memoDeps","isCallingCanDrop","DropTargetMonitorImpl","internalMonitor","getMonitor","subscribeToStateChange","canDropOnTarget","isOverTarget","getItemType","getDropResult","didDrop","getInitialClientOffset","getInitialSourceClientOffset","getSourceClientOffset","getClientOffset","getDifferenceFromInitialOffset","shallowEqual","objA","objB","compareContext","compareResult","keysA","keysB","bHasOwnProperty","valueA","valueB","wrapHookToRecognizeElement","elementOrNode","throwIfCompositeComponentElement","newRef","previousRef","setRef","cloneWithRef","wrapConnectorHooks","wrappedHooks","endsWith","wrappedHook","isRef","TargetConnector","clearDropTarget","dropTargetOptions","dropTargetRef","dropTargetNode","reconnect","didChange","didHandlerIdChange","didDropTargetChange","didOptionsChange","disconnectDropTarget","lastConnectedHandlerId","lastConnectedDropTarget","lastConnectedDropTargetOptions","unsubscribeDropTarget","connectDropTarget","newHandlerId","dropTargetOptionsInternal","useMonitorOutput","collect","onCollect","_useCollector","onUpdate","collected","setCollected","updateCollected","nextValue","useCollector","_useCollector2","getHandlerId","handlerIds","useCollectedProps","collector","useConnectDropTarget","useDrop","specArg","getBackend","useDropTargetConnector","DragSourceImpl","canDrag","globalMonitor","isDragging","getSourceId","useRegisteredDragSource","useDragSource","itemType","useDragType","_registerSource","sourceId","addSource","removeSource","registerSource","_registerSource2","isCallingCanDrag","isCallingIsDragging","DragSourceMonitorImpl","canDragSource","isDraggingSource","getTargetIds","isSourcePublic","subscribeToOffsetChange","SourceConnector","dragSource","clearDragSource","dragSourceOptions","dragSourceRef","dragSourceNode","reconnectDragSource","dragPreview","clearDragPreview","dragPreviewOptions","dragPreviewRef","dragPreviewNode","reconnectDragPreview","dragSourceOptionsInternal","dragPreviewOptionsInternal","didConnectedDragSourceChange","didDragSourceOptionsChange","disconnectDragSource","lastConnectedDragSource","lastConnectedDragSourceOptions","dragSourceUnsubscribe","connectDragSource","didConnectedDragPreviewChange","didDragPreviewOptionsChange","disconnectDragPreview","lastConnectedDragPreview","lastConnectedDragPreviewOptions","dragPreviewUnsubscribe","connectDragPreview","useConnectDragSource","useConnectDragPreview","useDrag","begin","useDragSourceConnector","previewOptions","memoize","EnterLeaveCounter","isNodeInDocument","enteringNode","previousLength","entered","itemsA","itemsB","insertItem","leavingNode","isFirefox","isSafari","safari","MonotonicInterpolant","xs","ys","dx","dy","dys","dxs","ms","c1s","_i2","m2","mNext","dxNext","c2s","c3s","_i3","c1","invDx","_common","mid","low","high","xHere","diff","diffSq","getNodeClientOffset","_el$getBoundingClient","getEventClientOffset","getDragPreviewOffset","sourceNode","clientOffset","anchorPoint","offsetPoint","_document$documentEle","isImage","dragPreviewNodeOffsetFromClient","offsetFromDragPreview","sourceWidth","offsetWidth","sourceHeight","anchorX","anchorY","_getDragPreviewSize","dragPreviewWidth","dragPreviewHeight","devicePixelRatio","getDragPreviewSize","offsetX","offsetY","isManualOffsetY","calculateYOffset","_nativeTypesConfig","TEXT","HTML","getDataFromDataTransfer","typesToTry","resultSoFar","typeToTry","nativeTypesConfig","exposeProperties","matchesTypes","urls","NativeDragSource","initializeExposedProperties","newProperties","matchNativeItemType","dataTransferTypes","nativeItemType","OptionsReader","globalContext","optionsArgs","_this$globalContext","_this$optionsArgs","rootElement","enumerableOnly","getOwnPropertyDescriptors","ListenerType","HTML5BackendImpl","sourceNodes","isDraggingNativeItem","actions","endDrag","currentNativeHandle","currentNativeSource","currentDragSourceNode","clearCurrentDragSourceNode","dragStartSourceIds","beginDrag","publishSource","nativeType","setDragImage","sourcePreviewNodes","_this$getCurrentSourc","getCurrentSourcePreviewNodeOptions","dragPreviewOffset","setCurrentDragSourceNode","captureDraggingState","publishDragSource","beginDragNativeItem","dragEnterTargetIds","enterLeaveCounter","altKeyPressed","getCurrentDropEffect","dragOverTargetIds","leave","endDragNativeItem","_this$currentNativeSo","dropTargetIds","loadDataTransfer","dragDrop","isContentEditable","getActions","_this$dragStartSource","_this$dragOverTargetI","sourcePreviewNodeOptions","sourceNodeOptions","__isReactDndBackendSetUp","addEventListeners","_this$window","removeEventListeners","asyncEndDragFrameId","handleDragStart","handleSelectStart","handleDragEnter","handleDragOver","handleDrop","handleTopDragStart","handleTopDragStartCapture","handleTopDragEndCapture","handleTopDragEnter","handleTopDragEnterCapture","handleTopDragLeaveCapture","handleTopDragOver","handleTopDragOverCapture","handleTopDrop","handleTopDropCapture","getCurrentSourceNodeOptions","createNativeDragSource","mouseMoveTimeoutTimer","_this5$rootElement","endDragIfSourceWasRemovedFromDOM","_this$window2","HTML5Backend","MouseButtons","MouseButton","eventShouldStartDrag","isTouchEvent","lastTargetTouchFallback","getEventClientTouchOffset","supportsPassive","supported","_eventNames","_this$args$delay","scrollAngleRanges","getDropTargetElementsAtPoint","_this$args$ignoreCont","ignoreContextMenu","_this$args$enableHove","enableHoverOutsideTarget","_this$args$enableKeyb","enableKeyboardEvents","_this$args$enableMous","enableMouseEvents","_this$args$enableTouc","enableTouchEvents","touchSlop","_this$args$delayTouch","_this$args","_this$args2","delayTouchStart","_this$args$delayMouse","_this$args3","_this$args4","delayMouseStart","_this$context","_this$args5","mouse","move","touch","keyboard","keydown","TouchBackendImpl","moveStartSourceIds","_mouseClientOffset","waitingForDelay","handleTopMoveStart","_evt","x1","y1","x2","y2","_isScrolling","angleRanges","angle","atan2","PI","inAngleRanges","sqrt","installSourceNodeRemovalObserver","dragOverTargetNodes","targetNodes","elementsAtPoint","elementsFromPoint","elementsAtPointExtended","nodeId","orderedDragOverTargetIds","_getDropTargetId","ids","targetNode","eventShouldEndDrag","uninstallSourceNodeRemovalObserver","listenerTypes","isSetUp","getTopMoveStartHandler","handleTopMoveStartCapture","handleTopMove","handleTopMoveCapture","handleTopMoveEndCapture","handleCancelOnEscape","subject","listenerType","handleMoveStart","handleMove","coords","droppedOn","elementFromPoint","childMatch","handleTopMoveStartDelay","draggedSourceNode","draggedSourceNodeRemovalObserver","resurrectSourceNode","childList","disconnect","DndBackend","featurePreview","isActive","getSelectableColumns","selectableColumns","defaultColumns","showConfigPanel","setConfigPanel","toggleConfigPanel","changeLayout","inputEl","getColumnLayout","cols","newColumn","curLayout","BlockToolbarButton","BlockConfigPanel","listStyle","columnString","Columns","Column","serializedColumns","_getSelectableColumns2","NO_BLOCK_TYPE_FALLBACK","DefaultToolbar","Stylesheets","StylesheetType","css","rel","skipFocusDefault","ignoreClickEvent","showButton","parentBlock","focusLeader","dragIndex","hoverIndex","hoverBoundingRect","hoverMiddleY","bottom","hoverClientY","_useDrag2","drag","focusDescendant","clickBlockTargetRef","withBlockContext","_useMemo","click","getBlocksByRange","onCopy","onPaste","onUp","onDown","onWindowKeydown","dispatchKeydownEvent","RemoveButton","rootClassName","overflow","rootAttributes","InitSizeFunc","lastElement","marginBottom","postMessageFunc","scrollWidth","setCompiledHtmlFunc","addEditHistory","preserveBlockData","addDroppableFunc","eventDelegationFunc","_block$compiledHtml2","header","onSetCompiledHtml","onBeforeSetCompiledHtml","border","_ref3$scheme","_ref3$sandbox","sandbox","containerElRef","_useHtmlDataState","_block$compiledHtml","_rawHtmlData","setHtmlText","rawHtmlData","useHtmlDataState","_useHtmlDataState2","rawHtmlText","setHtmlData","_setSize","setSize","_containerElRef$curre","_history","hist0","hist1","setIframePreviewSize","getIframePreviewSize","setCompiledHtml","beforeRenderIframePreviewOpt","htmlText","_useState6","setSrc","rootAttributesObj","srcdoc","TextEncoder","base64Srcdoc","btoa","onMessage","_containerEl$getRootN","containerEl","isDefaultSize","oldValue","getRootNode","MouseEvent","srcDoc","frameBorder","maxWidth","maxHeight","boxSizing","STYLE_HIDDEN","canRemoveBlock","scroll","destEl","rect","pageYOffset","offsetTop","scrollTo","behavior","resetCompiledHtml","_html","focusFirstBlock","focusItem","BlockItem","showPreview","_serializeChildBlocks","cancelOngoingCompilationHandlers","effectiveAddableBlockTypes","BlockIframePreview","previewHeader","serializeChildOpts","serializedBlocks","serializeChildBlocks","rootBlock","canceled","sourceHtml","timeoutId","entityReverseRegExp","removeControlCharacters","_parseContent","fallbackBlockType","domparser","_args2","metaRawValue","metaArray","filtered","newFromHtml","emptyBlocks","ancestor","childBlocks","findDescendantBlocksInternal","rootBlocks","foundCount","getBlocksByRangeInternal","parents","currentBlocks","startBlocks","findRange","mac","cmd","alt","ctrl","other","isMac","setPlatform","_platform","_Map","INIT_COORDS","BEGIN_DRAG","PUBLISH_DRAG_SOURCE","HOVER","DROP","END_DRAG","setClientOffset","sourceClientOffset","ResetCoordinatesAction","createBeginDrag","sourceIds","_options$publishSourc","getSource","verifyInvariants","getDraggableSource","verifyGetSourceClientOffsetIsFunction","verifyItemIsObject","pinSource","getSourceType","createPublishDragSource","matchesType","targetType","draggedItemType","createHover","targetIdsArg","verifyTargetIdsIsArray","targetIds","getTarget","checkInvariants","getTargetType","removeNonMatchingTargetIds","hoverAllTargets","createDrop","getDroppableTargets","dropResult","verifyDropResultType","determineDropResult","createEndDrag","verifyIsDragging","unpinSource","DragDropManagerImpl","handleRefCountChange","shouldSetUp","refCount","setup","teardown","subscribe","createDragDropActions","boundActions","actionCreator","formatProdErrorMessage","$$observable","observable","randomString","ActionTypes","INIT","PROBE_UNKNOWN_ACTION","isPlainObject","createStore","reducer","preloadedState","enhancer","currentReducer","currentState","currentListeners","nextListeners","isDispatching","ensureCanMutateNextListeners","isSubscribed","replaceReducer","nextReducer","outerSubscribe","observeState","unsubscribe","strictEquality","initialState","initialSourceClientOffset","initialClientOffset","offsetA","offsetB","ADD_SOURCE","ADD_TARGET","REMOVE_SOURCE","REMOVE_TARGET","NONE","ALL","_action$payload","_action$payload$targe","_action$payload$prevT","prevTargetIds","xor","isEqual","areArraysEqual","prevInnermostTargetId","innermostTargetId","dirtyHandlerIds","dragOffset","dragOperation","stateId","subtract","__IS_NONE__","__IS_ALL__","HandlerRole","DragDropMonitorImpl","prevStateId","currentStateId","canSkipListener","dirtyIds","commonIds","areDirty","previousState","shallow","nextUniqueId","validateType","allowArray","scope","BrowserMutationObserver","makeRequestCallFromTimer","handleTimer","intervalHandle","clearInterval","makeRequestCall","RawTask","asapQueue","enqueueTask","requestFlush","flushing","pendingErrors","capacity","currentIndex","scan","newLength","registerPendingError","requestErrorThrow","taskFactory","tasks","freeTasks","getNextHandlerId","role","SOURCE","parseRoleFromHandlerId","mapContainsValue","isDone","_entries$next","HandlerRegistryImpl","dragSources","dropTargets","pinnedSourceId","pinnedSource","validateSourceContract","addHandler","validateTargetContract","includePinned","isSourceId","isTargetId","createDragDropManager","backendFactory","backendOptions","debugMode","reduxDevTools","__REDUX_DEVTOOLS_EXTENSION__","instanceId","makeStoreInstance","receiveBackend","_excluded","_objectWithoutProperties","excluded","sourceKeys","sourceSymbolKeys","INSTANCE_SYM","DndProvider","_getDndContextValue","getGlobalContext","ctx","createSingletonDndContext","isGlobalInstance","getDndContextValue","_getDndContextValue2","_focusedIds","_setFocusedIds","focusedIdsRef","arrayEquals","editorEl","startId","onEditorMousedown","_ev$target$closest","mtBlockEditorBlockId","onEditorMouseup","_ev$target$closest2","endId","onBlockEditorCommand","addButtons","BlockFactory","allTypes","selectable","registered","NO_GROUP","EditManager","histories","ignore","_add","emitChange","merged","_nextFocusBlock$id","nextFocusBlock","beforeRenderIframePreview","_doc$body$querySelect","OVERLAY_CLASS_NAME","PORTAL_STYLE","_ref$onClose","onClose","portal","onKeydown","DialogContext","Dialog","modalRef","modalEl","Overlay","DialogHeader","_useContext$onClose","DialogBody","DialogFooter","Html","linkUrl","linkTarget","linkTitle","caption","isLinkDialogOpen","setLinkDialogOpen","formRef","iconLink","_form$querySelector","Image","File","pluginsSettings","grandChildren","Table","fullWidth","TableForTinyMCE","Horizontalrule","registerType","isTextSelected","isCollapsed","isClipboardAPIAvailable","_navigator$clipboard2","writeText","_block$wrapperRef$cur","_editor","htmlBlob","plainBlob","_block$wrapperRef$cur2","toClipboardItem","acc","ClipboardItem","_ref$editorContext","confirm","registerCommand","copyBlock","pasteBlock","duplicateBlock","deleteBlock","insertLink","_buildKeyboardShortcutCache","inputElement","initDefaultEventHandlers","buildKeyboardShortcutCache","keyboardShortcutCache","buildStylesheets","initialized","typeIds","editHandlersAdd","before","canMerge","editHandlersRemove","editHandlersSwap","metadataReverseMap","metadataMap","stringArray","targetMap","reusableIds","_step2$value","_Object$keys","metadataMapSequence","metaSetup","keysForSetup","metaStrings","getMetadataMapIndexes","App","resetCss","EditorManager","editors","_remove","_instance","EditorUtil","_unload","_apply","_classStaticPrivateFieldSpecGet","_eventHandlers","optsI18n","initI18n","deregisterType","BoilerplateBlock","decorator","Hook","util","MTBlockEditor"],"sourceRoot":""} \ No newline at end of file diff --git a/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.5/register-boilerplate-blocks.js b/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.7/register-boilerplate-blocks.js similarity index 100% rename from mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.5/register-boilerplate-blocks.js rename to mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.7/register-boilerplate-blocks.js diff --git a/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.5/register-boilerplate-blocks.js.map b/mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.7/register-boilerplate-blocks.js.map similarity index 100% rename from mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.5/register-boilerplate-blocks.js.map rename to mt-static/plugins/MTBlockEditor/dist/mt-block-editor/1.2.7/register-boilerplate-blocks.js.map diff --git a/plugins/MTBlockEditor/lib/MT/Plugin/MTBlockEditor/App/Oembed.pm b/plugins/MTBlockEditor/lib/MT/Plugin/MTBlockEditor/App/Oembed.pm index 9bf1af2..20fc3fc 100644 --- a/plugins/MTBlockEditor/lib/MT/Plugin/MTBlockEditor/App/Oembed.pm +++ b/plugins/MTBlockEditor/lib/MT/Plugin/MTBlockEditor/App/Oembed.pm @@ -26,27 +26,31 @@ sub get_oembed_url { # youtube return "https://www.youtube.com/oembed?url=${url}" - if $url =~ /youtube|youtu\.be/i; + if $url =~ m{^https?://(?:www\.)?(?:youtube\.com|youtu\.be)/}i; # soundcloud return "https://soundcloud.com/oembed?url=${url}" - if $url =~ /soundcloud/i; + if $url =~ m{^https?://(?:www\.)?soundcloud\.com/}i; # mixcloud return "https://www.mixcloud.com/oembed/?url=${url}" - if $url =~ /mixcloud/i; + if $url =~ m{^https?://(?:www\.)?mixcloud\.com/}i; # vimeo return "https://vimeo.com/api/oembed.json?url=${url}" - if $url =~ /vimeo/i; + if $url =~ m{^https?://(?:www\.)?vimeo\.com/}i; # slideshare return "https://www.slideshare.net/api/oembed/2?url=${url}" - if $url =~ /slideshare/i; + if $url =~ m{^https?://(?:www\.)?slideshare\.net/}i; - # twitter + # x (twitter) return "https://publish.twitter.com/oembed?url=${url}" - if $url =~ /twitter/i; + if $url =~ m{^https?://(?:www\.)?(?:twitter|x)\.com/[^/]+/status/\d+}i; + + # tiktok + return "https://www.tiktok.com/oembed?url=${url}" + if $url =~ m{^https?://(?:www\.)?tiktok\.com/.*\/video\/.*}i; # FIXME: access token is required # instagram @@ -55,10 +59,6 @@ sub get_oembed_url { # return "https://graph.facebook.com/v10.0/instagram_oembed?url=${url}"; # } - # tiktok - return "https://www.tiktok.com/oembed?url=${url}" - if $url =~ /tiktok\.com\/.*\/video\/.*/i; - return ""; } diff --git a/plugins/MTBlockEditor/t/08-app-oembed.t b/plugins/MTBlockEditor/t/08-app-oembed.t index 4db7dd8..89353dd 100644 --- a/plugins/MTBlockEditor/t/08-app-oembed.t +++ b/plugins/MTBlockEditor/t/08-app-oembed.t @@ -29,6 +29,10 @@ my $admin = $objs->{author}{admin}; my ($app, $out); my @services = ({ + name => "x", + url => "https://x.com/sixapartkk/status/1225330880022896640", + }, + { name => "twitter", url => "https://twitter.com/sixapartkk/status/1225330880022896640", }, diff --git a/plugins/MTBlockEditor/tmpl/script.tmpl b/plugins/MTBlockEditor/tmpl/script.tmpl index b3d2bc2..62cb4ba 100644 --- a/plugins/MTBlockEditor/tmpl/script.tmpl +++ b/plugins/MTBlockEditor/tmpl/script.tmpl @@ -5,8 +5,8 @@ - -plugins/MTBlockEditor/dist/mt-block-editor/1.2.5/mt-block-editor.css?v=" /> + +plugins/MTBlockEditor/dist/mt-block-editor/1.2.7/mt-block-editor.css?v=" /> plugins/MTBlockEditor/dist/mt-block-editor-block-oembed/1.0.7/mt-block-editor-block-oembed.css?v=" /> @@ -14,7 +14,7 @@ - +